Commit c0824cd49adb185d1aa992242911467dc0bf46b1

Frank Praznik 2023-03-26T12:53:50

events: Increase the size of the name buffer when logging events Event names have grown in length and are occasionally truncated when being logged (e.g. SDL_EVENT_WINDOW_PIXEL_SIZE_CHA). Increase the event name buffer size to handle the longer names. (cherry picked from commit 203a2a76fc0af2094de84d75dbf959c7db73fe72)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/events/SDL_events.c b/src/events/SDL_events.c
index 4bfb945..5d23fe5 100644
--- a/src/events/SDL_events.c
+++ b/src/events/SDL_events.c
@@ -161,7 +161,7 @@ static void SDLCALL SDL_EventLoggingChanged(void *userdata, const char *name, co
 
 static void SDL_LogEvent(const SDL_Event *event)
 {
-    char name[32];
+    char name[64];
     char details[128];
 
     /* sensor/mouse/finger motion are spammy, ignore these if they aren't demanded. */