mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
common: Fix strsplit.
* common/stringhelp.c (strsplit): Fix arguments order.
This commit is contained in:
parent
c8584a1e55
commit
a9895a5a72
@ -1230,7 +1230,7 @@ strsplit (char *string, char delim, char replacement, int *count)
|
||||
for (t = strchr (string, delim); t; t = strchr (t + 1, delim))
|
||||
fields ++;
|
||||
|
||||
result = xtrycalloc (sizeof (*result), (fields + 1));
|
||||
result = xtrycalloc ((fields + 1), sizeof (*result));
|
||||
if (! result)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user