diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-31 15:10:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-31 15:10:43 +0400 |
commit | e6613389e76eedc9712576cce887e9492cfa523f (patch) | |
tree | ac055f59e2b91c70a933ab2eaffbaa37f45f75b4 /source/creator | |
parent | dbf54dacf7e3fabe6ccb0e36a1743c91ac445b28 (diff) |
write all crashlogs into the temp directory (not next to blend files).
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 624b1148072..d88498f3ff7 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -548,7 +548,8 @@ static void blender_crash_handler(int signum) BLI_make_file_string("/", fname, BLI_temporary_dir(), "blender.crash.txt"); } else { - BLI_strncpy(fname, G.main->name, sizeof(fname)); + const char *fname_base = BLI_path_basename(G.main->name); + BLI_make_file_string("/", fname, BLI_temporary_dir(), fname_base); BLI_replace_extension(fname, sizeof(fname), ".crash.txt"); } |