Revision: 65161
          http://sourceforge.net/p/brlcad/code/65161
Author:   brlcad
Date:     2015-06-03 06:13:43 +0000 (Wed, 03 Jun 2015)
Log Message:
-----------
per manpage, buffer contents are supposed to remain unchanged if eof is 
encountered before we read

Modified Paths:
--------------
    brlcad/trunk/src/libbu/fgets.c

Modified: brlcad/trunk/src/libbu/fgets.c
===================================================================
--- brlcad/trunk/src/libbu/fgets.c      2015-06-03 06:02:57 UTC (rev 65160)
+++ brlcad/trunk/src/libbu/fgets.c      2015-06-03 06:13:43 UTC (rev 65161)
@@ -48,7 +48,6 @@
 
     /* check for EOF or error */
     if (feof(stream) || ferror(stream)) {
-       *s = '\0';
        return (char *)NULL;
     }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to