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>2015-05-05 19:22:00 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-05 19:22:00 +0300
commit35c67d6750627fd19a36dd3b527b57d19704334d (patch)
tree8256edb2caeb66f5227387cef272170eecb7a202 /source/blender/blenkernel/intern/bpath.c
parentb5e96530353ef22d184a60cd2b59a5e451ee211f (diff)
Fix reading uninitialized memory finding paths
Diffstat (limited to 'source/blender/blenkernel/intern/bpath.c')
-rw-r--r--source/blender/blenkernel/intern/bpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c
index 7c2b0a8a840..265cb0aa403 100644
--- a/source/blender/blenkernel/intern/bpath.c
+++ b/source/blender/blenkernel/intern/bpath.c
@@ -370,6 +370,9 @@ static bool rewrite_path_fixed_dirfile(char path_dir[FILE_MAXDIR],
BLI_join_dirfile(path_src, sizeof(path_src), path_dir, path_file);
+ /* so functions can check old value */
+ BLI_strncpy(path_dst, path_src, FILE_MAX);
+
if (absbase) {
BLI_path_abs(path_src, absbase);
}