Fix a memory corruption in the configuration file parsing. Fixes: #11.

This commit is contained in:
Sam Hocevar 2017-07-17 11:57:12 +02:00
parent 96d60bcabb
commit 8feb3e0513

View File

@ -291,7 +291,7 @@ static void readConfiguration(void) {
}
allRules = (Rule *)
realloc(allRules, sizeof(Rule *) * (allRulesCount + 1));
realloc(allRules, sizeof(Rule) * (allRulesCount + 1));
if (!allRules) {
goto lowMemory;
}