Skip to content

Commit e7e23f4

Browse files
committed
Fix Windows CI build
1 parent c14b812 commit e7e23f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/plugin.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ int plugins_load(char* path){
102102
LOG("Failed to allocate memory");
103103
return -1;
104104
}
105-
snprintf(search_expression, strlen(path) + strlen("*.dll"), "%s*.dll", path);
105+
snprintf(search_expression, strlen(path) + strlen("*.dll") + 1, "%s*.dll", path);
106+
DBGPF("FindFirstFile search expression: %s", search_expression);
106107

107108
WIN32_FIND_DATA result;
108109
HANDLE hSearch = FindFirstFile(search_expression, &result);

0 commit comments

Comments
 (0)