Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-31 15:10:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-31 15:10:43 +0400
commite6613389e76eedc9712576cce887e9492cfa523f (patch)
treeac055f59e2b91c70a933ab2eaffbaa37f45f75b4 /source/creator
parentdbf54dacf7e3fabe6ccb0e36a1743c91ac445b28 (diff)
write all crashlogs into the temp directory (not next to blend files).
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c3
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");
}