mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Fix: Correctly realign elements in list if space at the end is requested
This commit is contained in:
parent
336553165b
commit
eec0dc6c84
@ -81,7 +81,7 @@ void igloo_list_preallocate(igloo_list_t *list, size_t reques
|
||||
list->length = new_len;
|
||||
}
|
||||
|
||||
if (list->offset > 16)
|
||||
if (list->offset > 16 || ((list->length - list->fill) < request))
|
||||
igloo_list_preallocate__realign(list);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user