Browse code

bb #6808

David Raynor authored on 2013/04/06 06:17:18
Showing 1 changed files
... ...
@@ -193,7 +193,7 @@ static char *getsistring(FILE *f, uint32_t ptr, uint32_t len) {
193 193
 
194 194
   if (!len) return NULL;
195 195
   if (len>400) len=400;
196
-  name = cli_malloc(len);
196
+  name = cli_malloc(len+1);
197 197
   if (!name) {
198 198
     cli_dbgmsg("SIS: OOM\n");
199 199
     return NULL;