diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 43d0d7be..1e367369 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -1326,7 +1326,7 @@ void *_alpm_greedy_grow(void **data, size_t *current, const size_t required) return NULL; } - return _alpm_realloc(data, current, required); + return _alpm_realloc(data, current, newsize); } void _alpm_alloc_fail(size_t size)