stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r446645 - /incubator/stdcxx/trunk/util/output.cpp
Date Fri, 15 Sep 2006 15:55:45 GMT
Author: faridz
Date: Fri Sep 15 08:55:45 2006
New Revision: 446645

URL: http://svn.apache.org/viewvc?view=rev&rev=446645
Log:
2006-09-15  Farid Zaripov  <farid@kyiv.vdiweb.com>

	* output.cpp (check_example): Switched size and count parameters of fread() call to get fread()
result in bytes (needed for memcmp)

Modified:
    incubator/stdcxx/trunk/util/output.cpp

Modified: incubator/stdcxx/trunk/util/output.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/output.cpp?view=diff&rev=446645&r1=446644&r2=446645
==============================================================================
--- incubator/stdcxx/trunk/util/output.cpp (original)
+++ incubator/stdcxx/trunk/util/output.cpp Fri Sep 15 08:55:45 2006
@@ -256,14 +256,14 @@
             size_t nread [2];   /* bytes read from the output/ref file */
 
             /* First, read a block from the files into the buffer */
-            nread [0] = fread (buf [0], sizeof buf [0], 1, fout);
+            nread [0] = fread (buf [0], 1, sizeof buf [0], fout);
             if (ferror (fout)) {
                 warn ("Error reading %s: %s\n", out_name, strerror (errno));
                 match = 0;
                 break;
             }
 
-            nread [1] = fread (buf [1], sizeof buf [1], 1, fref);
+            nread [1] = fread (buf [1], 1, sizeof buf [1], fref);
             if (ferror (fref)) {
                 warn ("Error reading %s: %s\n", ref_name, strerror (errno));
                 match = 0;



Mime
View raw message