[GRASS-SVN] r32394 - grass/trunk/lib/g3d
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 30 20:36:40 EDT 2008
Author: glynn
Date: 2008-07-30 20:36:39 -0400 (Wed, 30 Jul 2008)
New Revision: 32394
Modified:
grass/trunk/lib/g3d/g3dcats.c
grass/trunk/lib/g3d/g3dcolor.c
grass/trunk/lib/g3d/g3dopen.c
Log:
More G{NAME,MAPSET}_MAX fixes
Modified: grass/trunk/lib/g3d/g3dcats.c
===================================================================
--- grass/trunk/lib/g3d/g3dcats.c 2008-07-30 23:57:49 UTC (rev 32393)
+++ grass/trunk/lib/g3d/g3dcats.c 2008-07-31 00:36:39 UTC (rev 32394)
@@ -91,7 +91,7 @@
{
FILE *fd;
- char buff[1024], buf2[200], xname[512], xmapset[512];
+ char buff[1024], buf2[200], xname[GNAME_MAX], xmapset[GMAPSET_MAX];
CELL cat;
DCELL val1, val2;
int old;
Modified: grass/trunk/lib/g3d/g3dcolor.c
===================================================================
--- grass/trunk/lib/g3d/g3dcolor.c 2008-07-30 23:57:49 UTC (rev 32393)
+++ grass/trunk/lib/g3d/g3dcolor.c 2008-07-31 00:36:39 UTC (rev 32394)
@@ -23,7 +23,7 @@
{
- char buf[200], secondary[500], buf2[200], xname[512], xmapset[512];
+ char buf[200], secondary[500], buf2[200], xname[GNAME_MAX], xmapset[GMAPSET_MAX];
if (G__name_is_fully_qualified (name, xname, xmapset)) {
sprintf (buf, "%s/%s", G3D_DIRECTORY, xname);
@@ -365,7 +365,7 @@
{
char element[512], buf[512], buf2[200];
- char xname[512], xmapset[512];
+ char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
FILE *fd;
int stat;
Modified: grass/trunk/lib/g3d/g3dopen.c
===================================================================
--- grass/trunk/lib/g3d/g3dopen.c 2008-07-30 23:57:49 UTC (rev 32393)
+++ grass/trunk/lib/g3d/g3dopen.c 2008-07-31 00:36:39 UTC (rev 32394)
@@ -14,7 +14,7 @@
{
G3D_Map *map;
- char buf[200], buf2[200], xname[512], xmapset[512];
+ char buf[200], buf2[200], xname[GNAME_MAX], xmapset[GMAPSET_MAX];
G3d_initDefaults ();
@@ -220,7 +220,7 @@
G3D_Map *map;
int nofHeaderBytes, dummy = 0, compression, precision;
long ldummy = 0;
- char xname[512], xmapset[512];
+ char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
G3d_initDefaults ();
if (! G3d_maskOpenOld ()) {
More information about the grass-commit
mailing list