From c4ce1b70e398785e372546daea7a33347e6767f7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Mar 2022 17:20:41 +1100 Subject: Correct error in 3dc44f8c89acc082334034982ffc8bc802f23475 The array for event.flag was too big, harmless but incorrect. Remove the size from the declaration as it's not needed. --- source/blender/windowmanager/intern/wm_event_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_event_query.c') diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c index 6a8ecdafd69..503dae53122 100644 --- a/source/blender/windowmanager/intern/wm_event_query.c +++ b/source/blender/windowmanager/intern/wm_event_query.c @@ -88,7 +88,7 @@ void WM_event_print(const wmEvent *event) char modifier_id[128]; { - struct FlagIdentifierPair flag_data[4] = { + struct FlagIdentifierPair flag_data[] = { {"SHIFT", KM_SHIFT}, {"CTRL", KM_CTRL}, {"ALT", KM_ALT}, @@ -100,7 +100,7 @@ void WM_event_print(const wmEvent *event) char flag_id[128]; { - struct FlagIdentifierPair flag_data[4] = { + struct FlagIdentifierPair flag_data[] = { {"SCROLL_INVERT", WM_EVENT_SCROLL_INVERT}, {"IS_REPEAT", WM_EVENT_IS_REPEAT}, {"FORCE_DRAG_THRESHOLD", WM_EVENT_FORCE_DRAG_THRESHOLD}, -- cgit v1.2.3