diff options
author | NIIBE Yutaka <[email protected]> | 2015-09-30 23:57:06 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-09-30 23:57:06 +0000 |
commit | a9895a5a72a851c5fcc70f16d5f8f588cc885751 (patch) | |
tree | 1a72a932bdaac1d6407323b47dc5975b7486ab5a /common/stringhelp.c | |
parent | common: Add mkdir_p. (diff) | |
download | gnupg-a9895a5a72a851c5fcc70f16d5f8f588cc885751.tar.gz gnupg-a9895a5a72a851c5fcc70f16d5f8f588cc885751.zip |
common: Fix strsplit.
* common/stringhelp.c (strsplit): Fix arguments order.
Diffstat (limited to 'common/stringhelp.c')
-rw-r--r-- | common/stringhelp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/stringhelp.c b/common/stringhelp.c index 576c2eaed..38c383212 100644 --- a/common/stringhelp.c +++ b/common/stringhelp.c @@ -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; |