* utilunix.c (close_error_pipe): Fixed possible invalid memory access

(three lines below).
This commit is contained in:
Roland Illig 2004-10-11 21:53:30 +00:00
parent 9f0c07f07a
commit d3774b9d94
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* file.c (copy_dir_dir): Small text fix.

View File

@ -436,7 +436,7 @@ close_error_pipe (int error, const char *text)
close (2);
dup (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)
msg[len] = 0;