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:
parent
c28db1f0a0
commit
0d3ea69daa
|
@ -176,7 +176,7 @@ static void seq_disk_cache_get_files(SeqDiskCache *disk_cache, char *dirpath)
|
||||||
if (is_dir && !FILENAME_IS_CURRPAR(file)) {
|
if (is_dir && !FILENAME_IS_CURRPAR(file)) {
|
||||||
char subpath[FILE_MAX];
|
char subpath[FILE_MAX];
|
||||||
STRNCPY(subpath, fl->path);
|
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);
|
seq_disk_cache_get_files(disk_cache, subpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue