Fix string size passed into name prefix function
authorCampbell Barton <ideasman42@gmail.com>
Sun, 17 Mar 2019 08:48:09 +0000 (19:48 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 17 Mar 2019 10:14:43 +0000 (21:14 +1100)
source/blender/editors/interface/interface_templates.c

index 987a2e5..7bbf4d1 100644 (file)
@@ -298,7 +298,7 @@ static bool id_search_add(
                        /* +1 is needed because BKE_id_ui_prefix used 3 letter prefix
                         * followed by ID_NAME-2 characters from id->name
                         */
-                       char name_ui[MAX_ID_FULL_NAME];
+                       char name_ui[MAX_ID_FULL_NAME_UI];
                        BKE_id_full_name_ui_prefix_get(name_ui, id);
 
                        int iconid = ui_id_icon_get(C, id, template_ui->preview);