Commit dc1f1d7f by Nathan Sidwell Committed by Nathan Sidwell

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

From-SVN: r66927
parent 4e2e315f
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> 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
* c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS): * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
......
...@@ -369,7 +369,7 @@ gcov_read_bytes (unsigned bytes) ...@@ -369,7 +369,7 @@ gcov_read_bytes (unsigned bytes)
gcov_allocate (gcov_var.length + bytes); gcov_allocate (gcov_var.length + bytes);
excess = gcov_var.alloc - gcov_var.length; excess = gcov_var.alloc - gcov_var.length;
#endif #endif
excess = fread (gcov_var.buffer + gcov_var.offset, excess = fread (gcov_var.buffer + gcov_var.length,
1, excess, gcov_var.file); 1, excess, gcov_var.file);
gcov_var.length += excess; gcov_var.length += excess;
if (gcov_var.length < bytes) if (gcov_var.length < bytes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment