(svn r5858) - Backport from trunk (r5801): 0.4
authorDarkvater
Sat, 12 Aug 2006 12:13:08 +0000
branch0.4
changeset 10073 a1d404ac9820
parent 10072 e9bd7b46e732
child 10074 cae7dc5c5dfe
(svn r5858) - Backport from trunk (r5801):
The exception dialog showed the last modification-date of win32.c instead of the
last compilation-date.
win32.c
--- a/win32.c	Sat Aug 12 12:11:54 2006 +0000
+++ b/win32.c	Sat Aug 12 12:13:08 2006 +0000
@@ -22,10 +22,6 @@
 
 static bool _has_console;
 
-#if defined(__MINGW32__) || defined(__CYGWIN__)
-	#define __TIMESTAMP__   __DATE__ __TIME__
-#endif
-
 #if defined(__MINGW32__)
 	#include <stdint.h>
 #endif
@@ -445,10 +441,10 @@
 	{
 		SYSTEMTIME time;
 		GetLocalTime(&time);
-		output += sprintf(output,
+		output += snprintf(output, 8192,
 			"*** OpenTTD Crash Report ***\r\n"
 			"Date: %d-%.2d-%.2d %.2d:%.2d:%.2d\r\n"
-			"Build: %s built on " __TIMESTAMP__ "\r\n",
+			"Build: %s built on " __DATE__ " " __TIME__ "\r\n",
 			time.wYear,
 			time.wMonth,
 			time.wDay,