fix comparsion of config file options

pull/1/head
Heiko Hund 2014-01-16 18:11:20 +01:00
parent a4119be7c0
commit 6f2445bce7
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ ConfigFileOptionExist(int config, const char *option)
while (fgets(line, sizeof(line), fp))
{
if (strncmp(line, option, sizeof(option)) == 0)
if (strncmp(line, option, strlen(option)) == 0)
{
fclose(fp);
return true;