From e7e23f4b15c07c25ba942cd793f9e061db6af4ea Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 28 Apr 2022 20:40:41 +0200 Subject: Fix Windows CI build --- core/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/plugin.c b/core/plugin.c index cd85059..01c3342 100644 --- a/core/plugin.c +++ b/core/plugin.c @@ -102,7 +102,8 @@ int plugins_load(char* path){ LOG("Failed to allocate memory"); return -1; } - snprintf(search_expression, strlen(path) + strlen("*.dll"), "%s*.dll", path); + snprintf(search_expression, strlen(path) + strlen("*.dll") + 1, "%s*.dll", path); + DBGPF("FindFirstFile search expression: %s", search_expression); WIN32_FIND_DATA result; HANDLE hSearch = FindFirstFile(search_expression, &result); -- cgit v1.2.3