From 5b82822c12e014771dceaf9d909e1c0f3653c5a9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 23 Apr 2014 21:12:09 +0000 Subject: (svn r26486) -Codechange: replace a number of snprintfs with seprintf --- src/video/allegro_v.cpp | 2 +- src/video/sdl_v.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video') diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index e7c7b828b..c75bcfb2e 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -224,7 +224,7 @@ static bool CreateMainSurface(uint w, uint h) InitPalette(); char caption[32]; - snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision); + seprintf(caption, lastof(caption), "OpenTTD %s", _openttd_revision); set_window_title(caption); enable_hardware_cursor(); diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index ff0fffd9c..6ec5269d5 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -418,7 +418,7 @@ bool VideoDriver_SDL::CreateMainSurface(uint w, uint h) NOT_REACHED(); } - snprintf(caption, sizeof(caption), "OpenTTD %s", _openttd_revision); + seprintf(caption, lastof(caption), "OpenTTD %s", _openttd_revision); SDL_CALL SDL_WM_SetCaption(caption, caption); GameSizeChanged(); -- cgit v1.2.3-70-g09d2