replace fixed sizes with sizeof when passing string length since size wasn't always...
[blender.git] / source / blender / editors / interface / interface_handlers.c
index 525b15ac7e33cb98eab01db18d0ccbae88c56f26..3a19bb2a90cde4ae22d1150e1ce65270bfe274b8 100644 (file)
@@ -4388,7 +4388,9 @@ static void but_shortcut_name_func(bContext *C, void *arg1, int UNUSED(event))
                IDProperty *prop= (but->opptr)? but->opptr->data: NULL;
                
                /* complex code to change name of button */
                IDProperty *prop= (but->opptr)? but->opptr->data: NULL;
                
                /* complex code to change name of button */
-               if(WM_key_event_operator_string(C, but->optype->idname, but->opcontext, prop, TRUE, buf, sizeof(buf))) {
+               if(WM_key_event_operator_string(C, but->optype->idname, but->opcontext, prop, TRUE,
+                                               buf, sizeof(buf)))
+               {
                        char *butstr_orig;
 
                        // XXX but->str changed... should not, remove the hotkey from it
                        char *butstr_orig;
 
                        // XXX but->str changed... should not, remove the hotkey from it