aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exhaustive/check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exhaustive/check.c b/src/exhaustive/check.c
index 46b27e4..5fa1c17 100644
--- a/src/exhaustive/check.c
+++ b/src/exhaustive/check.c
@@ -15,7 +15,8 @@ check_t *check_new(check_f one, ...) {
va_start(args, one);
check_f check;
while ((check = va_arg(args, check_f)) != NULL) {
- result->checks = try_realloc(result->checks, ++result->nchecks);
+ result->checks =
+ try_realloc(result->checks, sizeof(check_f) * (++result->nchecks));
result->checks[result->nchecks - 1] = check;
}
va_end(args);