[GRASS-SVN] r30031 - grass/trunk/general/g.mapsets

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 9 03:56:43 EST 2008


Author: neteler
Date: 2008-02-09 03:56:43 -0500 (Sat, 09 Feb 2008)
New Revision: 30031

Modified:
   grass/trunk/general/g.mapsets/get_path.c
   grass/trunk/general/g.mapsets/set_path.c
Log:
longer buffers

Modified: grass/trunk/general/g.mapsets/get_path.c
===================================================================
--- grass/trunk/general/g.mapsets/get_path.c	2008-02-09 08:54:54 UTC (rev 30030)
+++ grass/trunk/general/g.mapsets/get_path.c	2008-02-09 08:56:43 UTC (rev 30031)
@@ -7,9 +7,9 @@
 get_mapset_path (void)
 {
     static int first = 1;
-    char buf[1024];
+    char buf[4096];
     char *b;
-    char name[50];
+    char name[GMAPSET_MAX];
     int n;
     int action;	/* defines action to be taken in set_path function */
 
@@ -27,7 +27,7 @@
     nchoices = 0;
 
     fprintf (stdout,"\nnew list> ");
-    if (!fgets (b = buf,1024,stdin)) goto same;
+    if (!fgets (b = buf,4096,stdin)) goto same;
     while(isspace(*b))b++;
 
 	switch (*b) {

Modified: grass/trunk/general/g.mapsets/set_path.c
===================================================================
--- grass/trunk/general/g.mapsets/set_path.c	2008-02-09 08:54:54 UTC (rev 30030)
+++ grass/trunk/general/g.mapsets/set_path.c	2008-02-09 08:56:43 UTC (rev 30031)
@@ -5,7 +5,7 @@
 
 int set_mapset_path (void)
 {
-    char command[1024];
+    char command[4096];
     int n;
     int i;
     int skip;



More information about the grass-commit mailing list