forked from bartvdbraak/blender
Fix reading uninitialized memory finding paths
This commit is contained in:
parent
b5e9653035
commit
35c67d6750
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user