浏览代码

list subgroup: wrong pointer type fix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57847 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 11 年之前
父节点
当前提交
717583d7bf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/imagery/list_subgp.c

+ 2 - 2
lib/imagery/list_subgp.c

@@ -30,8 +30,8 @@ char **I_list_subgroups(const char *group, int *subgs_num)
        This approach should make the function usable in more cases. */
 
     char **subgs;
-    char *path[GPATH_MAX];
-    char *buf[GPATH_MAX];
+    char path[GPATH_MAX];
+    char buf[GPATH_MAX];
     const char *mapset;
     struct stat sb;