pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src/language/stats flip.c ChangeLog


From: Ben Pfaff
Subject: [Pspp-cvs] pspp/src/language/stats flip.c ChangeLog
Date: Wed, 07 Feb 2007 03:58:45 +0000

CVSROOT:        /cvsroot/pspp
Module name:    pspp
Changes by:     Ben Pfaff <blp> 07/02/07 03:58:45

Modified files:
        src/language/stats: flip.c ChangeLog 

Log message:
        Give better error message on end of file.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/language/stats/flip.c?cvsroot=pspp&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/pspp/src/language/stats/ChangeLog?cvsroot=pspp&r1=1.43&r2=1.44

Patches:
Index: flip.c
===================================================================
RCS file: /cvsroot/pspp/pspp/src/language/stats/flip.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- flip.c      22 Dec 2006 11:12:14 -0000      1.20
+++ flip.c      7 Feb 2007 03:58:45 -0000       1.21
@@ -448,7 +448,10 @@
 
       if (read_cases != fread (input_buf, case_bytes, read_cases, input_file)) 
         {
+          if (ferror (input_file))
           msg (SE, _("Error reading FLIP file: %s."), strerror (errno));
+          else
+            msg (SE, _("Unexpected end of file reading FLIP file.")); 
           return false;
         }
 

Index: ChangeLog
===================================================================
RCS file: /cvsroot/pspp/pspp/src/language/stats/ChangeLog,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- ChangeLog   4 Feb 2007 16:38:26 -0000       1.43
+++ ChangeLog   7 Feb 2007 03:58:45 -0000       1.44
@@ -1,3 +1,7 @@
+Tue Feb  6 19:58:03 2007  Ben Pfaff  <address@hidden>
+
+       * flip.c (flip_file): Give better error message on end-of-file.
+
 2007-02-04  Jason Stover  <address@hidden>
 
        * regression.q: Fixed p-value computation in the test for




reply via email to

[Prev in Thread] Current Thread [Next in Thread]