[GRASS-SVN] r43609 - grass/branches/develbranch_6/ps/ps.map

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 22 05:50:02 EDT 2010


Author: hamish
Date: 2010-09-22 09:50:02 +0000 (Wed, 22 Sep 2010)
New Revision: 43609

Modified:
   grass/branches/develbranch_6/ps/ps.map/labels.h
   grass/branches/develbranch_6/ps/ps.map/r_labels.c
Log:
bump max number of label files, GNAME_MAX (merge from trunk; #1133)

Modified: grass/branches/develbranch_6/ps/ps.map/labels.h
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/labels.h	2010-09-22 09:47:57 UTC (rev 43608)
+++ grass/branches/develbranch_6/ps/ps.map/labels.h	2010-09-22 09:50:02 UTC (rev 43609)
@@ -1,4 +1,4 @@
-#define MAXLABELS 10
+#define MAXLABELS 50
 
 struct labels
 {

Modified: grass/branches/develbranch_6/ps/ps.map/r_labels.c
===================================================================
--- grass/branches/develbranch_6/ps/ps.map/r_labels.c	2010-09-22 09:47:57 UTC (rev 43608)
+++ grass/branches/develbranch_6/ps/ps.map/r_labels.c	2010-09-22 09:50:02 UTC (rev 43609)
@@ -12,7 +12,7 @@
 
 int read_labels(char *name, char *mapset)
 {
-    char fullname[100];
+    char fullname[GNAME_MAX+GMAPSET_MAX+5];
     char buf[1024];
     char *key, *data;
 



More information about the grass-commit mailing list