diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-02 18:48:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-02 18:48:32 +0400 |
commit | a24f83855a29e530ee8f9cc069ff294f4ee28799 (patch) | |
tree | 54e0989328c2298ed46bedc1dabcfb9882bcfb0d /source/blender/editors | |
parent | 43d9eb252240fa24e85438f2f28265a1cc8c9847 (diff) |
Fix for crash pasting text into uilist filter
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 6bb6081d135..db62cf81cbb 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -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 { |