[GRASS-SVN] r43608 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 22 05:47:57 EDT 2010
Author: hamish
Date: 2010-09-22 09:47:57 +0000 (Wed, 22 Sep 2010)
New Revision: 43608
Modified:
grass/trunk/ps/ps.map/labels.h
grass/trunk/ps/ps.map/r_labels.c
Log:
bump max number of label files, GNAME_MAX
Modified: grass/trunk/ps/ps.map/labels.h
===================================================================
--- grass/trunk/ps/ps.map/labels.h 2010-09-22 09:31:49 UTC (rev 43607)
+++ grass/trunk/ps/ps.map/labels.h 2010-09-22 09:47:57 UTC (rev 43608)
@@ -1,4 +1,4 @@
-#define MAXLABELS 10
+#define MAXLABELS 50
struct labels
{
Modified: grass/trunk/ps/ps.map/r_labels.c
===================================================================
--- grass/trunk/ps/ps.map/r_labels.c 2010-09-22 09:31:49 UTC (rev 43607)
+++ grass/trunk/ps/ps.map/r_labels.c 2010-09-22 09:47:57 UTC (rev 43608)
@@ -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