Closed shiftwinting closed 7 years ago
before: allRules = (Rule ) realloc(allRules, sizeof(Rule ) (allRulesCount + 1)); Rule is pointer, size: int
after: allRules = (Rule ) realloc(allRules, sizeof(Rule) (allRulesCount + 1));
Good catch! Thanks.
before: allRules = (Rule ) realloc(allRules, sizeof(Rule ) (allRulesCount + 1)); Rule is pointer, size: int
after: allRules = (Rule ) realloc(allRules, sizeof(Rule) (allRulesCount + 1));