forked from enlightenment/efl
test: correct argument order for calloc()
calloc() expects count first and the actual size to allocate as second argument. Say Thank You to smatch for finding this issues for us.
This commit is contained in:
parent
3a4c2a9b45
commit
337c51c946
|
@ -388,7 +388,7 @@ _space_removed_string_get(const char *name)
|
|||
char *ret;
|
||||
|
||||
len = strlen(name);
|
||||
ret = calloc(sizeof(char), len + 1);
|
||||
ret = calloc(len + 1, sizeof(char));
|
||||
|
||||
while (name[i])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue