diff options
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index 18e0a1db9e..4375ad025e 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -963,12 +963,20 @@ void end_game( struct scorefile_entry &se ) unlink(info); // create base file name + snprintf( info, INFO_SIZE, #ifdef SAVE_DIR_PATH - snprintf( info, INFO_SIZE, SAVE_DIR_PATH "%s%d", you.your_name, (int) getuid()); + SAVE_DIR_PATH +#endif +#ifdef MULTIUSER + "%s%d", #else - strncpy(info, you.your_name, kFileNameLen); - info[kFileNameLen] = '\0'; + "%s", +#endif + you.your_name +#ifdef MULTIUSER + , (int) getuid() #endif + ); // this is to catch the game package if it still exists. #ifdef PACKAGE_SUFFIX |