Skip to content

Commit 67887ae

Browse files
committed
Fix a typo in the error message
The code has been copy-pasted from the `precompute_ecmult_gen.c` source file.
1 parent 926dd3e commit 67887ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/precompute_ecmult.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ static void print_two_tables(FILE *fp, int window_g) {
5656
int main(void) {
5757
/* Always compute all tables for window sizes up to 15. */
5858
int window_g = (ECMULT_WINDOW_SIZE < 15) ? 15 : ECMULT_WINDOW_SIZE;
59+
const char outfile[] = "src/precomputed_ecmult.c";
5960
FILE* fp;
6061

61-
fp = fopen("src/precomputed_ecmult.c","w");
62+
fp = fopen(outfile, "w");
6263
if (fp == NULL) {
63-
fprintf(stderr, "Could not open src/precomputed_ecmult.h for writing!\n");
64+
fprintf(stderr, "Could not open %s for writing!\n", outfile);
6465
return -1;
6566
}
6667

0 commit comments

Comments
 (0)