From 21031af49c4470d78ca30c987d0454904dc5d9ab 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 fb16e84be58..88849196c4d 100644 --- a/source/blender/sequencer/intern/disk_cache.cc +++ b/source/blender/sequencer/intern/disk_cache.cc @@ -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); }