fix comparsion of config file options

pull/1/head
Heiko Hund 11 years ago
parent a4119be7c0
commit 6f2445bce7

@ -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;

Loading…
Cancel
Save