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:17:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-31 15:17:08 +0400
commit9c99bcd3685cc49768502074b8a7ba9572d2dbc4 (patch)
tree8812dc88ab8955807fa74b3c0d1965c33cf285ac /source/creator
parente6613389e76eedc9712576cce887e9492cfa523f (diff)
replace BLI_make_file_string with BLI_join_dirfile since its much more simple and does whats needed.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index d88498f3ff7..b0022ffa118 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -545,11 +545,10 @@ static void blender_crash_handler(int signum)
char fname[FILE_MAX];
if (!G.main->name[0]) {
- BLI_make_file_string("/", fname, BLI_temporary_dir(), "blender.crash.txt");
+ BLI_join_dirfile(fname, sizeof(fname), BLI_temporary_dir(), "blender.crash.txt");
}
else {
- const char *fname_base = BLI_path_basename(G.main->name);
- BLI_make_file_string("/", fname, BLI_temporary_dir(), fname_base);
+ BLI_join_dirfile(fname, sizeof(fname), BLI_temporary_dir(), BLI_path_basename(G.main->name));
BLI_replace_extension(fname, sizeof(fname), ".crash.txt");
}