diff options
author | Darkvater <Darkvater@openttd.org> | 2005-06-18 20:23:35 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-06-18 20:23:35 +0000 |
commit | e480038d190ff2f8f73360e40975c60b888397a0 (patch) | |
tree | 7a667ce4514e369d2c1734c1247e782ac960f1ea | |
parent | fc2f5b79efa85d939b0167b78f743489cb9e5569 (diff) | |
download | openttd-e480038d190ff2f8f73360e40975c60b888397a0.tar.xz |
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
-rw-r--r-- | win32.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |