瀏覽代碼

Use G{NAME,MAPSET}_MAX

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32775 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 年之前
父節點
當前提交
d2ca571b4f
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ps/ps.map/main.c
  2. 1 1
      ps/ps.map/r_colortable.c

+ 1 - 1
ps/ps.map/main.c

@@ -88,7 +88,7 @@ int ps_copies = 1;
 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;

+ 1 - 1
ps/ps.map/r_colortable.c

@@ -29,7 +29,7 @@ int read_colortable(void)
 {
     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;