From 238343b5e832f468dfbc15ec2ec1fff7c0d94073 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 13 Feb 2026 10:28:26 +0100 Subject: [PATCH] Fix -Wformat-truncation warning in window title formatting Co-Authored-By: Claude Opus 4.6 --- src/sdlamp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdlamp2.c b/src/sdlamp2.c index 4f1899e..8de3081 100644 --- a/src/sdlamp2.c +++ b/src/sdlamp2.c @@ -475,7 +475,7 @@ static void switch_file(int index) { decoder_seek(pos); } - char title[256]; + char title[768]; snprintf(title, sizeof(title), "SDLamp2 - %s", current_file); SDL_SetWindowTitle(window, title);