diff --git a/src/ChangeLog b/src/ChangeLog index 0086ddbcd..2c237fc18 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-10-11 Roland Illig + + * utilunix.c (close_error_pipe): Fixed possible invalid memory access + (three lines below). + 2004-10-11 Leonard den Ottolander * file.c (copy_dir_dir): Small text fix. diff --git a/src/utilunix.c b/src/utilunix.c index baf728e5e..2375a98a8 100644 --- a/src/utilunix.c +++ b/src/utilunix.c @@ -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;