diff --git a/src/bench_ecmult.c b/src/bench_ecmult.c index bffc5338b1..4f9ed4e95c 100644 --- a/src/bench_ecmult.c +++ b/src/bench_ecmult.c @@ -233,7 +233,7 @@ static void bench_ecmult_multi_teardown(void* arg, int iters) { static void generate_scalar(uint32_t num, secp256k1_scalar* scalar) { secp256k1_sha256 sha256; - unsigned char c[11] = {'e', 'c', 'm', 'u', 'l', 't', 0, 0, 0, 0}; + unsigned char c[10] = {'e', 'c', 'm', 'u', 'l', 't', 0, 0, 0, 0}; unsigned char buf[32]; int overflow = 0; c[6] = num;