Fix -Wformat-truncation warning in window title formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Smith 2026-02-13 10:28:26 +01:00
parent 7e67589150
commit 238343b5e8

View File

@ -475,7 +475,7 @@ static void switch_file(int index) {
decoder_seek(pos); decoder_seek(pos);
} }
char title[256]; char title[768];
snprintf(title, sizeof(title), "SDLamp2 - %s", current_file); snprintf(title, sizeof(title), "SDLamp2 - %s", current_file);
SDL_SetWindowTitle(window, title); SDL_SetWindowTitle(window, title);