From 67887ae65cf11d02c7055709082acd0e5d86db9b Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 24 Jun 2023 20:16:01 +0100 Subject: [PATCH] Fix a typo in the error message The code has been copy-pasted from the `precompute_ecmult_gen.c` source file. --- src/precompute_ecmult.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/precompute_ecmult.c b/src/precompute_ecmult.c index 742142cf5..5ef198a77 100644 --- a/src/precompute_ecmult.c +++ b/src/precompute_ecmult.c @@ -56,11 +56,12 @@ static void print_two_tables(FILE *fp, int window_g) { int main(void) { /* Always compute all tables for window sizes up to 15. */ int window_g = (ECMULT_WINDOW_SIZE < 15) ? 15 : ECMULT_WINDOW_SIZE; + const char outfile[] = "src/precomputed_ecmult.c"; FILE* fp; - fp = fopen("src/precomputed_ecmult.c","w"); + fp = fopen(outfile, "w"); if (fp == NULL) { - fprintf(stderr, "Could not open src/precomputed_ecmult.h for writing!\n"); + fprintf(stderr, "Could not open %s for writing!\n", outfile); return -1; }