Author: faridz
Date: Wed Oct  4 01:40:08 2006
New Revision: 452797

URL: http://svn.apache.org/viewvc?view=rev&rev=452797
Log:
2006-10-04 Farid Zaripov <[EMAIL PROTECTED]>

        * output.cpp (check_example): swapped size and count parameters of 
fread() call

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=452797&r1=452796&r2=452797
==============================================================================
--- incubator/stdcxx/trunk/util/output.cpp (original)
+++ incubator/stdcxx/trunk/util/output.cpp Wed Oct  4 01:40:08 2006
@@ -259,14 +259,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;


Reply via email to