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:
Stefan Schmidt 2015-11-30 21:57:58 +01:00
parent 3a4c2a9b45
commit 337c51c946
1 changed files with 1 additions and 1 deletions

View File

@ -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])
{