From 0d3ea69daa51de068a4479c0fcc3d3c05ce9d1b8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2024 11:40:21 +1100 Subject: [PATCH] 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]: d66f24cfe30d26e03863a78de9fd58bb3b65ed43 --- source/blender/sequencer/intern/disk_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/sequencer/intern/disk_cache.cc b/source/blender/sequencer/intern/disk_cache.cc index 1686d86a499..0c698c449a2 100644 --- a/source/blender/sequencer/intern/disk_cache.cc +++ b/source/blender/sequencer/intern/disk_cache.cc @@ -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); }