* gcov-io.c (gcov_read_bytes): Fix fread thinko.
From-SVN: r66927
This commit is contained in:
parent
4e2e315f25
commit
dc1f1d7f9d
@ -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):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user