1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-23 06:25:25 +00:00

Fix: Correctly realign elements in list if space at the end is requested

This commit is contained in:
Philipp Schafft 2018-11-07 14:08:59 +00:00
parent 336553165b
commit eec0dc6c84

View File

@ -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);
}