[GRASS-CVS] hamish: grass6/lib/gis key_value2.c,2.3,2.3.2.1

grass at intevation.de grass at intevation.de
Thu Nov 22 07:02:57 EST 2007


Author: hamish

Update of /grassrepository/grass6/lib/gis
In directory doto:/tmp/cvs-serv27156/grass6/lib/gis

Modified Files:
      Tag: releasebranch_6_3
	key_value2.c 
Log Message:
make reading the PROJ_INFO file DOS-proof
  (merge from HEAD)


Index: key_value2.c
===================================================================
RCS file: /grassrepository/grass6/lib/gis/key_value2.c,v
retrieving revision 2.3
retrieving revision 2.3.2.1
diff -u -d -r2.3 -r2.3.2.1
--- key_value2.c	14 Apr 2007 23:01:59 -0000	2.3
+++ key_value2.c	22 Nov 2007 12:02:55 -0000	2.3.2.1
@@ -32,7 +32,7 @@
     kv = G_create_key_value();
     if (kv == NULL)
 	return NULL;
-    while (G_getl(buf, sizeof buf, fd) != 0)
+    while (G_getl2(buf, sizeof(buf)-1, fd) != 0)
     {
 	key = value = buf;
 	while (*value && *value != ':')




More information about the grass-commit mailing list