[GRASS-SVN] r30030 - grass/trunk/general/g.mapsets
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 9 03:54:55 EST 2008
Author: neteler
Date: 2008-02-09 03:54:54 -0500 (Sat, 09 Feb 2008)
New Revision: 30030
Modified:
grass/trunk/general/g.mapsets/externs.h
grass/trunk/general/g.mapsets/main_cmd.c
Log:
use GMAPSET_MAX, GPATH_MAX
Modified: grass/trunk/general/g.mapsets/externs.h
===================================================================
--- grass/trunk/general/g.mapsets/externs.h 2008-02-09 08:23:20 UTC (rev 30029)
+++ grass/trunk/general/g.mapsets/externs.h 2008-02-09 08:54:54 UTC (rev 30030)
@@ -1,9 +1,9 @@
#ifdef MAIN
- char *mapset_name[256];
+ char *mapset_name[GMAPSET_MAX];
int nmapsets ;
- int choice[256];
+ int choice[GMAPSET_MAX];
int nchoices;
- int curr_mapset[256];
+ int curr_mapset[GMAPSET_MAX];
int ncurr_mapsets;
#else
extern char *mapset_name[];
Modified: grass/trunk/general/g.mapsets/main_cmd.c
===================================================================
--- grass/trunk/general/g.mapsets/main_cmd.c 2008-02-09 08:23:20 UTC (rev 30029)
+++ grass/trunk/general/g.mapsets/main_cmd.c 2008-02-09 08:54:54 UTC (rev 30030)
@@ -25,7 +25,7 @@
#include "local_proto.h"
#include "externs.h"
-static char Path[4096];
+static char Path[GPATH_MAX];
int
main (int argc, char *argv[])
More information about the grass-commit
mailing list