[GRASS-SVN] r32718 - in grass/branches/develbranch_6:
general/manage/lib visualization/xganim
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 12 06:08:56 EDT 2008
Author: martinl
Date: 2008-08-12 06:08:56 -0400 (Tue, 12 Aug 2008)
New Revision: 32718
Modified:
grass/branches/develbranch_6/general/manage/lib/find.c
grass/branches/develbranch_6/visualization/xganim/main.c
Log:
glynn: Use G{NAME,PATH}_MAX (merge from trunk, r32716)
Modified: grass/branches/develbranch_6/general/manage/lib/find.c
===================================================================
--- grass/branches/develbranch_6/general/manage/lib/find.c 2008-08-12 10:06:33 UTC (rev 32717)
+++ grass/branches/develbranch_6/general/manage/lib/find.c 2008-08-12 10:08:56 UTC (rev 32718)
@@ -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/branches/develbranch_6/visualization/xganim/main.c
===================================================================
--- grass/branches/develbranch_6/visualization/xganim/main.c 2008-08-12 10:06:33 UTC (rev 32717)
+++ grass/branches/develbranch_6/visualization/xganim/main.c 2008-08-12 10:08:56 UTC (rev 32718)
@@ -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