aboutsummaryrefslogtreecommitdiffhomepage
path: root/core
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2022-04-28 20:40:41 +0200
committercbdev <cb@cbcdn.com>2022-04-28 20:40:41 +0200
commite7e23f4b15c07c25ba942cd793f9e061db6af4ea (patch)
tree2265ad1b81a88d3669944578424556410e166242 /core
parentc14b8121b057b238c17f89995094d57a612f946f (diff)
downloadmidimonster-e7e23f4b15c07c25ba942cd793f9e061db6af4ea.tar.gz
midimonster-e7e23f4b15c07c25ba942cd793f9e061db6af4ea.tar.bz2
midimonster-e7e23f4b15c07c25ba942cd793f9e061db6af4ea.zip
Fix Windows CI build
Diffstat (limited to 'core')
-rw-r--r--core/plugin.c3
1 files changed, 2 insertions, 1 deletions
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);