summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/crash-u.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/crash-u.cc')
-rw-r--r--crawl-ref/source/crash-u.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/crash-u.cc b/crawl-ref/source/crash-u.cc
index 2e74fc2f31..a0bcb67771 100644
--- a/crawl-ref/source/crash-u.cc
+++ b/crawl-ref/source/crash-u.cc
@@ -53,6 +53,7 @@ template <typename TO, typename FROM> TO nasty_cast(FROM f) {
#include "externs.h"
#include "options.h"
#include "state.h"
+#include "stuff.h"
#include "initfile.h"
/////////////////////////////////////////////////////////////////////////////
@@ -81,8 +82,8 @@ static void _crash_signal_handler(int sig_num)
char name[180];
- sprintf(name, "%scrash-recursive-%s-%d.txt", dir.c_str(),
- you.your_name.c_str(), (int) time(NULL));
+ sprintf(name, "%scrash-recursive-%s-%s.txt", dir.c_str(),
+ you.your_name.c_str(), make_file_time(time(NULL)).c_str());
FILE* file = fopen(name, "w");