]> gcc.gnu.org Git - gcc.git/commitdiff
* gcov-io.c (gcov_read_bytes): Fix fread thinko.
authorNathan Sidwell <nathan@codesourcery.com>
Sun, 18 May 2003 11:17:38 +0000 (11:17 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sun, 18 May 2003 11:17:38 +0000 (11:17 +0000)
From-SVN: r66927

gcc/ChangeLog
gcc/gcov-io.c

index 72a621c12bbba08294c9c9c080336031f6b7722e..5b9436d8f1e3ceb0974415653ee5d3f58669a0a0 100644 (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):
index 3aad30e445d9dc9303a242ec74a4b4ec2989a105..94197c962e62c418250738c7ad2f328acd30dd13 100644 (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)
This page took 0.302456 seconds and 5 git commands to generate.