From ab761ae05bee3f58ade05d54353e56f8208db4fa Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Sat, 9 Mar 2024 20:08:51 -0700 Subject: [PATCH] Avoid FAST_FAIL_RANGE_CHECK_FAILURE at preset enumeration (#974) --- src/framework/mlt_repository.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/mlt_repository.c b/src/framework/mlt_repository.c index e1efcf56b..aaae7ea4b 100644 --- a/src/framework/mlt_repository.c +++ b/src/framework/mlt_repository.c @@ -581,7 +581,7 @@ static void list_presets(mlt_properties properties, const char *path, const char // load the preset mlt_properties preset = mlt_properties_load(fullname); if (preset && mlt_properties_count(preset)) { - snprintf(fullname, 1024, "%s/%s", path, de->d_name); + snprintf(fullname, sizeof(fullname), "%s/%s", path, de->d_name); mlt_properties_set_data(properties, fullname, preset,