elementary_test : Fixed my fault.

Valgrind complains invalid read of size 1
This commit is contained in:
Ryuan Choi 2013-07-06 20:55:41 +09:00
parent 47a73ea391
commit 1ef1afbae2
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ _space_removed_string_get(const char *name)
char *ret;
len = strlen(name);
ret = calloc(sizeof(char), len);
ret = calloc(sizeof(char), len + 1);
while (name[i])
{