diff --git a/firmware/chunk_alloc.c b/firmware/chunk_alloc.c index fd2eb2a772..02cc7a056c 100644 --- a/firmware/chunk_alloc.c +++ b/firmware/chunk_alloc.c @@ -114,7 +114,7 @@ bool chunk_realloc(struct chunk_alloc_header *hdr, logf("%s shrink existing chunk array", __func__); min_chunk = max_chunks; buflib_shrink(ctx, hdr->chunk_handle, - old_chunk, CHUNK_ARRSZ(max_chunks)); + NULL, CHUNK_ARRSZ(max_chunks)); new_handle = hdr->chunk_handle; }