aboutsummaryrefslogtreecommitdiffstats
path: root/common/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/list.c')
-rw-r--r--common/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/list.c b/common/list.c
index 9805ceec..c3e2fe20 100644
--- a/common/list.c
+++ b/common/list.c
@@ -17,7 +17,7 @@ list_t *create_list(void) {
17 17
18static void list_resize(list_t *list) { 18static void list_resize(list_t *list) {
19 if (list->length == list->capacity) { 19 if (list->length == list->capacity) {
20 list->capacity += 10; 20 list->capacity *= 2;
21 list->items = realloc(list->items, sizeof(void*) * list->capacity); 21 list->items = realloc(list->items, sizeof(void*) * list->capacity);
22 } 22 }
23} 23}