summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util/pacsort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 109d1a16..082ba728 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -103,7 +103,7 @@ static struct list_t *list_new(size_t initial_size)
return NULL;
}
- list->list = calloc(initial_size, sizeof(char **));
+ list->list = calloc(initial_size, sizeof(char *));
if(!list->list) {
free(list);
return NULL;
@@ -117,7 +117,7 @@ static struct list_t *list_new(size_t initial_size)
static int list_grow(struct list_t *list)
{
size_t newsz = list->maxcount * 2.5;
- list->list = realloc(list->list, newsz * sizeof(char*));
+ list->list = realloc(list->list, newsz * sizeof(char *));
if(!list->list) {
return 1;
}