[GRASS-SVN] r32775 - grass/trunk/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 15 08:53:11 EDT 2008


Author: glynn
Date: 2008-08-15 08:53:11 -0400 (Fri, 15 Aug 2008)
New Revision: 32775

Modified:
   grass/trunk/ps/ps.map/main.c
   grass/trunk/ps/ps.map/r_colortable.c
Log:
Use G{NAME,MAPSET}_MAX


Modified: grass/trunk/ps/ps.map/main.c
===================================================================
--- grass/trunk/ps/ps.map/main.c	2008-08-15 10:50:20 UTC (rev 32774)
+++ grass/trunk/ps/ps.map/main.c	2008-08-15 12:53:11 UTC (rev 32775)
@@ -88,7 +88,7 @@
 int main(int argc, char *argv[])
 {
     char buf[1024];
-    char name[100], mapset[50];
+    char name[GNAME_MAX], mapset[GMAPSET_MAX];
     int i;
     int iflag;
     int can_reset_scale;

Modified: grass/trunk/ps/ps.map/r_colortable.c
===================================================================
--- grass/trunk/ps/ps.map/r_colortable.c	2008-08-15 10:50:20 UTC (rev 32774)
+++ grass/trunk/ps/ps.map/r_colortable.c	2008-08-15 12:53:11 UTC (rev 32775)
@@ -29,7 +29,7 @@
 {
     char buf[1024];
     char *key, *data;
-    char name[100], mapset[50];
+    char name[GNAME_MAX], mapset[GMAPSET_MAX];
     int color, fontsize, cols, nodata, tickbar;
     double w, h, x, y;
     int range_override;



More information about the grass-commit mailing list