summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-12-10 18:36:58 +0100
committerGravatar Nikias Bassen2018-12-10 18:36:58 +0100
commit5dde103ae1635db38630409da261acdba4afecc3 (patch)
treed8f2661d5a38679b752e10ccc45c6289adefa65e /src
parent5bf95e9a4dcd2c02df7ff5317ea810820c442074 (diff)
downloadlibplist-5dde103ae1635db38630409da261acdba4afecc3.tar.gz
libplist-5dde103ae1635db38630409da261acdba4afecc3.tar.bz2
ptrarray: Allow larger chunks for buffer reallocation
Diffstat (limited to 'src')
-rw-r--r--src/ptrarray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptrarray.c b/src/ptrarray.c
index 56d28cb..eb17d28 100644
--- a/src/ptrarray.c
+++ b/src/ptrarray.c
@@ -25,7 +25,7 @@ ptrarray_t *ptr_array_new(int capacity)
ptrarray_t *pa = (ptrarray_t*)malloc(sizeof(ptrarray_t));
pa->pdata = (void**)malloc(sizeof(void*) * capacity);
pa->capacity = capacity;
- pa->capacity_step = (capacity > 64) ? 64 : capacity;
+ pa->capacity_step = (capacity > 4096) ? 4096 : capacity;
pa->len = 0;
return pa;
}