aboutsummaryrefslogtreecommitdiff
path: root/src/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings.c')
-rw-r--r--src/strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.c b/src/strings.c
index f86acb2..afd5be3 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -175,7 +175,7 @@ char** split(char *_sptr, const char* delim)
int i = 0;
char *token = NULL;
while((token = strsep(&sptr, delim)) != NULL) {
- result[i] = (char *)calloc(1, sizeof(char) * strlen(token) + 1);
+ result[i] = (char *)calloc(strlen(token) + 1, sizeof(char));
if (!result[i]) {
free(sptr);
return NULL;