summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-08-07 11:31:27 +0000
committerDarkvater <Darkvater@openttd.org>2006-08-07 11:31:27 +0000
commit597f64f07d4e3d0c14396b92aa805e94a6698e3b (patch)
tree1827f517096cbb6d8736029a0c200998cec9d9bd /win32.c
parente20e4f95b80d25a93195ec190bd2140d97c0056a (diff)
downloadopenttd-597f64f07d4e3d0c14396b92aa805e94a6698e3b.tar.xz
(svn r5801) - Codechange: The exception dialog showed the last modification-date of win32.c instead of the last compilation-date. Use __DATE__ __TIME__ instead of __TIMESTAMP__; only affected windows not built with mingw/cygwin.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/win32.c b/win32.c
index 4bf59ddf9..d12cf1aec 100644
--- a/win32.c
+++ b/win32.c
@@ -24,10 +24,6 @@
static bool _has_console;
-#if defined(__MINGW32__) || defined(__CYGWIN__)
- #define __TIMESTAMP__ __DATE__ __TIME__
-#endif
-
#if defined(__MINGW32__)
#include <stdint.h>
#endif
@@ -440,10 +436,10 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
{
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,