diff options
Diffstat (limited to 'src/common/plugins.c')
-rw-r--r-- | src/common/plugins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/plugins.c b/src/common/plugins.c index 2d81548a1..614ac3c3a 100644 --- a/src/common/plugins.c +++ b/src/common/plugins.c @@ -320,7 +320,7 @@ static int plugins_config_read(const char *cfgName) auto_search = atoi(w2); } else if( strcmpi(w1,"plugin") == 0 ){ char filename[128]; - sprintf(filename, "plugins/%s%s", w2, DLL_EXT); + snprintf(filename, sizeof filename, "plugins/%s%s", w2, DLL_EXT); plugin_load(filename); } else if( strcmpi(w1,"import") == 0 ) plugins_config_read(w2); |