[GRASS-SVN] r32716 - in grass/trunk: general/manage/lib
visualization/xganim
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 12 06:05:05 EDT 2008
Author: glynn
Date: 2008-08-12 06:05:05 -0400 (Tue, 12 Aug 2008)
New Revision: 32716
Modified:
grass/trunk/general/manage/lib/find.c
grass/trunk/visualization/xganim/main.c
Log:
Use G{NAME,PATH}_MAX
Modified: grass/trunk/general/manage/lib/find.c
===================================================================
--- grass/trunk/general/manage/lib/find.c 2008-08-12 10:03:59 UTC (rev 32715)
+++ grass/trunk/general/manage/lib/find.c 2008-08-12 10:05:05 UTC (rev 32716)
@@ -7,7 +7,7 @@
mapset = G_find_file(list[n].element[0], name, mapsets);
if (mapset) {
- char temp[100];
+ char temp[GNAME_MAX];
sscanf(name, "%s", temp);
strcpy(name, temp);
Modified: grass/trunk/visualization/xganim/main.c
===================================================================
--- grass/trunk/visualization/xganim/main.c 2008-08-12 10:03:59 UTC (rev 32715)
+++ grass/trunk/visualization/xganim/main.c 2008-08-12 10:05:05 UTC (rev 32716)
@@ -519,7 +519,7 @@
static char **gee_wildfiles(char *wildarg, char *element, int *num)
{
int n, cnt = 0;
- char path[1000], *mapset, cmd[1000], buf[512];
+ char path[GPATH_MAX], *mapset, cmd[GPATH_MAX], buf[512];
char *p, *tfile;
static char *newfiles[MAXIMAGES];
FILE *tf;
More information about the grass-commit
mailing list