summaryrefslogtreecommitdiff
path: root/gcc/gcov-io.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-18 11:17:38 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-18 11:17:38 +0000
commit1278fdc377f7c6b2a2e480d84f19551f7ed519ba (patch)
tree96fa068cd26dc9ae50c20a8faad5f112f6124097 /gcc/gcov-io.c
parent6abe46e3b30622c186a48323d353e4e9737f9078 (diff)
downloadgcc-1278fdc377f7c6b2a2e480d84f19551f7ed519ba.tar.gz
* gcov-io.c (gcov_read_bytes): Fix fread thinko.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov-io.c')
-rw-r--r--gcc/gcov-io.c2
1 files changed, 1 insertions, 1 deletions
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)