mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* utilunix.c (close_error_pipe): Fixed possible invalid memory access
(three lines below).
This commit is contained in:
parent
9f0c07f07a
commit
d3774b9d94
@ -1,3 +1,8 @@
|
|||||||
|
2004-10-11 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* utilunix.c (close_error_pipe): Fixed possible invalid memory access
|
||||||
|
(three lines below).
|
||||||
|
|
||||||
2004-10-11 Leonard den Ottolander <leonard * den ottolander nl>
|
2004-10-11 Leonard den Ottolander <leonard * den ottolander nl>
|
||||||
|
|
||||||
* file.c (copy_dir_dir): Small text fix.
|
* file.c (copy_dir_dir): Small text fix.
|
||||||
|
@ -436,7 +436,7 @@ close_error_pipe (int error, const char *text)
|
|||||||
close (2);
|
close (2);
|
||||||
dup (old_error);
|
dup (old_error);
|
||||||
close (old_error);
|
close (old_error);
|
||||||
len = read (error_pipe[0], msg, MAX_PIPE_SIZE);
|
len = read (error_pipe[0], msg, MAX_PIPE_SIZE - 1);
|
||||||
|
|
||||||
if (len >= 0)
|
if (len >= 0)
|
||||||
msg[len] = 0;
|
msg[len] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user