diff options
Diffstat (limited to 'src/common/plugins.c')
-rw-r--r-- | src/common/plugins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/plugins.c b/src/common/plugins.c index 5a55e84e4..76dfc5956 100644 --- a/src/common/plugins.c +++ b/src/common/plugins.c @@ -303,7 +303,8 @@ static int plugins_config_read(const char *cfgName) ShowError("File not found: %s\n", cfgName); return 1; } - while( fgets(line, 1020, fp) ){ + while( fgets(line, sizeof(line), fp) ) + { if( line[0] == '/' && line[1] == '/' ) continue; if( sscanf(line,"%[^:]: %[^\r\n]",w1,w2) != 2 ) |