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:
Campbell Barton 2024-03-28 11:40:21 +11:00
parent c28db1f0a0
commit 0d3ea69daa
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,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);
}