From 3042e945d364d896d1420dc619331d84347185ba Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 18 Jun 2005 20:23:35 +0000 Subject: [PATCH] (svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build --- win32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/win32.c b/win32.c index 3a09b176e4..f8a4a389ab 100644 --- a/win32.c +++ b/win32.c @@ -518,8 +518,7 @@ static void MakeWindow(bool full_screen) } else { char Windowtitle[50] = "OpenTTD "; - snprintf(Windowtitle, lengthof(Windowtitle), "OpenTTD %s", - _openttd_revision); + strncat(Windowtitle, _openttd_revision, lengthof(Windowtitle)); _wnd.main_wnd = CreateWindow("TTD", Windowtitle, style, x, y, w, h, 0, 0, _inst, 0); if (_wnd.main_wnd == NULL)