[GRASS-SVN] r38842 - grass/trunk/lib/symbol

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 24 01:58:50 EDT 2009


Author: hamish
Date: 2009-08-24 01:58:50 -0400 (Mon, 24 Aug 2009)
New Revision: 38842

Modified:
   grass/trunk/lib/symbol/read.c
Log:
use G_getl2() instead of fgets() (merge from devbr6)

Modified: grass/trunk/lib/symbol/read.c
===================================================================
--- grass/trunk/lib/symbol/read.c	2009-08-24 05:57:41 UTC (rev 38841)
+++ grass/trunk/lib/symbol/read.c	2009-08-24 05:58:50 UTC (rev 38842)
@@ -193,7 +193,7 @@
 
     G_debug(5, "    read_coor()");
 
-    while (fgets(buf, 500, fp) != NULL) {
+    while (G_getl2(buf, 500, fp) != 0) {
 	G_chop(buf);
 	get_key_data(buf);
 
@@ -286,7 +286,7 @@
     current = OBJ_NONE;		/* no part */
 
     /* read file */
-    while (fgets(buf, 2000, fp) != NULL) {
+    while (G_getl2(buf, 2000, fp) != 0) {
 	G_chop(buf);
 	G_debug(3, "  BUF: %s", buf);
 	get_key_data(buf);



More information about the grass-commit mailing list