Prechádzať zdrojové kódy

managelib: fix M_get_option_desc() - enlarge buffer
(merge https://trac.osgeo.org/grass/changeset/63187 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63188 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 rokov pred
rodič
commit
bcc360e64a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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++) {