[GRASS-CVS] hamish: grass6/lib/gis key_value2.c,2.3,2.4
grass at intevation.de
grass at intevation.de
Thu Nov 22 07:00:59 EST 2007
Author: hamish
Update of /grassrepository/grass6/lib/gis
In directory doto:/tmp/cvs-serv27092/grass6/lib/gis
Modified Files:
key_value2.c
Log Message:
make reading the PROJ_INFO file DOS-proof
Index: key_value2.c
===================================================================
RCS file: /grassrepository/grass6/lib/gis/key_value2.c,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -d -r2.3 -r2.4
--- key_value2.c 14 Apr 2007 23:01:59 -0000 2.3
+++ key_value2.c 22 Nov 2007 12:00:57 -0000 2.4
@@ -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