[GRASS-SVN] r38841 - grass/branches/develbranch_6/lib/symbol

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 24 01:57:43 EDT 2009


Author: hamish
Date: 2009-08-24 01:57:41 -0400 (Mon, 24 Aug 2009)
New Revision: 38841

Modified:
   grass/branches/develbranch_6/lib/symbol/read.c
Log:
use G_getl2() instead of fgets()

Modified: grass/branches/develbranch_6/lib/symbol/read.c
===================================================================
--- grass/branches/develbranch_6/lib/symbol/read.c	2009-08-24 05:11:27 UTC (rev 38840)
+++ grass/branches/develbranch_6/lib/symbol/read.c	2009-08-24 05:57:41 UTC (rev 38841)
@@ -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);
 
@@ -285,7 +285,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