Fix sizeof(sizeof(...)) passed to BLI_path_slash_ensure
Regression in [0] which would cause ensuring the slash to do nothing
in most cases. Note that the slash may not be needed, but that should
be handled separately.
[0]: d66f24cfe3
This commit is contained in:
committed by
Thomas Dinges
parent
7987c663d9
commit
21031af49c
@@ -185,7 +185,7 @@ static void seq_disk_cache_get_files(SeqDiskCache *disk_cache, char *dirpath)
|
||||
if (is_dir && !FILENAME_IS_CURRPAR(file)) {
|
||||
char subpath[FILE_MAX];
|
||||
STRNCPY(subpath, fl->path);
|
||||
BLI_path_slash_ensure(subpath, sizeof(sizeof(subpath)));
|
||||
BLI_path_slash_ensure(subpath, sizeof(subpath));
|
||||
seq_disk_cache_get_files(disk_cache, subpath);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user