diff options
author | Nikias Bassen | 2018-12-10 18:36:58 +0100 |
---|---|---|
committer | Nikias Bassen | 2018-12-10 18:36:58 +0100 |
commit | 5dde103ae1635db38630409da261acdba4afecc3 (patch) | |
tree | d8f2661d5a38679b752e10ccc45c6289adefa65e | |
parent | 5bf95e9a4dcd2c02df7ff5317ea810820c442074 (diff) | |
download | libplist-5dde103ae1635db38630409da261acdba4afecc3.tar.gz libplist-5dde103ae1635db38630409da261acdba4afecc3.tar.bz2 |
ptrarray: Allow larger chunks for buffer reallocation
-rw-r--r-- | src/ptrarray.c | 2 |
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; } |