* gcov-io.c (gcov_read_bytes): Fix fread thinko.

From-SVN: r66927
This commit is contained in:
Nathan Sidwell 2003-05-18 11:17:38 +00:00 committed by Nathan Sidwell
parent 4e2e315f25
commit dc1f1d7f9d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
* gcov-io.c (gcov_read_bytes): Fix fread thinko.
2003-05-18 Neil Booth <neil@daikokuya.co.uk>
* c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):

View File

@ -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)