[GRASS-SVN] r30105 - in grass/branches/releasebranch_6_2:
display/d.rast.edit lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 13 01:11:08 EST 2008
Author: hamish
Date: 2008-02-13 01:11:08 -0500 (Wed, 13 Feb 2008)
New Revision: 30105
Modified:
grass/branches/releasebranch_6_2/display/d.rast.edit/edit.h
grass/branches/releasebranch_6_2/lib/gis/ask.c
Log:
use GNAME_MAX, GMAPSET_MAX (d.rast.edit filename segfault)
Modified: grass/branches/releasebranch_6_2/display/d.rast.edit/edit.h
===================================================================
--- grass/branches/releasebranch_6_2/display/d.rast.edit/edit.h 2008-02-13 05:19:24 UTC (rev 30104)
+++ grass/branches/releasebranch_6_2/display/d.rast.edit/edit.h 2008-02-13 06:11:08 UTC (rev 30105)
@@ -10,11 +10,11 @@
#ifndef GLOBAL
#define GLOBAL extern
#endif
-GLOBAL char new_name[40], current_name[40], orig_name[40];
+GLOBAL char new_name[GNAME_MAX], current_name[GNAME_MAX], orig_name[GNAME_MAX];
GLOBAL char grid_color_name[40];
GLOBAL DCELL max_value, min_value;
GLOBAL int cellsize;
-GLOBAL char user_mapset[40], current_mapset[40], orig_mapset[40];
+GLOBAL char user_mapset[GMAPSET_MAX], current_mapset[GMAPSET_MAX], orig_mapset[GMAPSET_MAX];
GLOBAL struct Cell_head real_window;
GLOBAL char *tempfile;
GLOBAL struct Categories cats;
Modified: grass/branches/releasebranch_6_2/lib/gis/ask.c
===================================================================
--- grass/branches/releasebranch_6_2/lib/gis/ask.c 2008-02-13 05:19:24 UTC (rev 30104)
+++ grass/branches/releasebranch_6_2/lib/gis/ask.c 2008-02-13 06:11:08 UTC (rev 30105)
@@ -590,10 +590,10 @@
static int parselist ( char *input, int option, char *mapset)
{
- char list[30];
- char f1[30];
- char f2[30];
- char f3[30];
+ char list[GNAME_MAX];
+ char f1[GMAPSET_MAX];
+ char f2[GMAPSET_MAX];
+ char f3[GMAPSET_MAX];
int count;
*list = *f1 = *f2 = 0;
More information about the grass-commit
mailing list