ref: d4ffe936bb15f84ef43313b0ba955d94f9330560
parent: 31c73ec1fd032071632c3b0f089908a7aea2b916
author: cancel <cancel@cancel.fm>
date: Sun Jan 5 21:37:20 EST 2020
Cleanup
--- a/term_util.c
+++ b/term_util.c
@@ -325,7 +325,7 @@
if (new_count > items_cap) {
// todo overflow check, realloc fail check
Usz old_cap = items_cap;
- Usz new_cap = new_count < 16 ? 16 : orca_round_up_power2(new_count);
+ Usz new_cap = new_count < 32 ? 32 : orca_round_up_power2(new_count);
Usz new_size = new_cap * (sizeof(ITEM*) + sizeof(struct Qmenu_item_extra));
ITEM** new_items = (ITEM**)realloc(items, new_size);
if (!new_items)