Mercurial > hg > openttd
changeset 1953:c420038a5c91 draft
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Sat, 18 Jun 2005 20:23:35 +0000 |
parents | 5de8c5905370 |
children | 33916fc46768 |
files | win32.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/win32.c +++ b/win32.c @@ -518,8 +518,7 @@ } 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)