(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
authorDarkvater
Sat, 18 Jun 2005 20:23:35 +0000
changeset 1953 d8c061d5b3ad
parent 1952 ad89ff734571
child 1954 2beb56cfddbb
(svn r2459) - Fix: windows title-bar did not correctly add date/revision for nightly build
win32.c
--- a/win32.c	Sat Jun 18 15:08:35 2005 +0000
+++ b/win32.c	Sat Jun 18 20:23:35 2005 +0000
@@ -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)