diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72a621c12bb..5b9436d8f1e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-05-18 Nathan Sidwell + + * gcov-io.c (gcov_read_bytes): Fix fread thinko. + 2003-05-18 Neil Booth * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS): diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index 3aad30e445d..94197c962e6 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -369,7 +369,7 @@ gcov_read_bytes (unsigned bytes) gcov_allocate (gcov_var.length + bytes); excess = gcov_var.alloc - gcov_var.length; #endif - excess = fread (gcov_var.buffer + gcov_var.offset, + excess = fread (gcov_var.buffer + gcov_var.length, 1, excess, gcov_var.file); gcov_var.length += excess; if (gcov_var.length < bytes)