diff options
| author | J08nY | 2018-02-03 22:08:56 +0100 |
|---|---|---|
| committer | J08nY | 2018-02-03 22:08:56 +0100 |
| commit | a8014775f308a0c052babebc01e33979672cc2ee (patch) | |
| tree | c74c71e52acb31681643bfa7cce05def5e3e4c61 | |
| parent | dedb8c3f127a3198c45dd29221f524d1227c207a (diff) | |
| download | ecgen-a8014775f308a0c052babebc01e33979672cc2ee.tar.gz ecgen-a8014775f308a0c052babebc01e33979672cc2ee.tar.zst ecgen-a8014775f308a0c052babebc01e33979672cc2ee.zip | |
| -rw-r--r-- | src/exhaustive/check.c | 3 |
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); |
