From 46fb0f894ad269528ac7fda533c7994eddd9b758 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev <0x416b617269@gmail.com> Date: Fri, 26 Jan 2018 19:39:17 +0200 Subject: [PATCH] last-moment window title fix --- src/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video.c b/src/video.c index fd96f189a5..e00d7e8f46 100644 --- a/src/video.c +++ b/src/video.c @@ -251,7 +251,7 @@ static void video_new_window_internal(int w, int h, uint32_t flags, bool fallbac SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG); #endif - char title[sizeof(WINDOW_TITLE) + strlen(TAISEI_VERSION) + 1]; + char title[sizeof(WINDOW_TITLE) + strlen(TAISEI_VERSION) + 2]; snprintf(title, sizeof(title), "%s v%s", WINDOW_TITLE, TAISEI_VERSION); video.window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, w, h, flags);