Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix array size in bench_ecmult
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed May 31, 2021
1 parent 2fe1b50 commit 8f879c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bench_ecmult.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,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;
Expand Down

0 comments on commit 8f879c2

Please sign in to comment.