forked from enlightenment/efl
elementary_test : Fixed my fault.
Valgrind complains invalid read of size 1
This commit is contained in:
parent
47a73ea391
commit
1ef1afbae2
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue