浏览代码

managelib: fix M_get_option_desc() - enlarge buffer

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63187 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父节点
当前提交
f598104cce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/manage/option.c

+ 1 - 1
lib/manage/option.c

@@ -115,7 +115,7 @@ const char *M_get_option_desc(int do_all)
 	len += strlen(list[n].text) + 1;
     }
     if (do_all)
-	len += strlen(str_all);
+	len += strlen(str_all) + 1;
     str = G_malloc(len);
     
     for (n = 0; n < nlist; n++) {