Fix for crash pasting text into uilist filter

This commit is contained in:
Campbell Barton 2013-12-03 01:48:05 +11:00
parent 43d9eb2522
commit a24f83855a
Notes: blender-bot 2023-02-14 11:29:57 +01:00
Referenced by issue #37747, keymap export/import error.
1 changed files with 1 additions and 1 deletions

View File

@ -2554,7 +2554,7 @@ static void uilist_filter_items_default(struct uiList *ui_list, struct bContext
dyn_data->items_shown = 0;
/* Implicitly add heading/trailing wildcards if needed. */
if (len + 3 <= 32) {
if (slen + 3 <= sizeof(filter_buff)) {
filter = filter_buff;
}
else {