Skip to content

Commit

Permalink
last-moment window title fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jan 26, 2018
1 parent 07897ef commit 46fb0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46fb0f8

Please sign in to comment.