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>2016-03-22 19:54:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-05 11:36:07 +0300
commit744ef820d136fc3da14003319dd6f49e8633faf5 (patch)
tree8d27d198e592b7bbde94f7ba7937485237c80154 /source/blender
parentf601a4b4f7b03db090d4009b0484a6675ac5b81b (diff)
Fix incorrect strncat use
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_file/file_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index ddb8b1cee9d..d83a7d5ea62 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1374,8 +1374,8 @@ int file_exec(bContext *C, wmOperator *exec_op)
BLI_parent_dir(sfile->params->dir);
}
else {
- BLI_cleanup_dir(G.main->name, sfile->params->dir);
- strncat(sfile->params->dir, file->relpath, sizeof(sfile->params->dir));
+ BLI_cleanup_path(G.main->name, sfile->params->dir);
+ BLI_path_append(sfile->params->dir, sizeof(sfile->params->dir) - 1, file->relpath);
BLI_add_slash(sfile->params->dir);
}