Skip to content

Commit fd491ea

Browse files
Merge bitcoin-core#1355: Fix a typo in the error message
67887ae Fix a typo in the error message (Hennadii Stepanov) Pull request description: The code has been copy-pasted from the `precompute_ecmult_gen.c` source file. ACKs for top commit: real-or-random: ACK 67887ae Tree-SHA512: d6874949310197e5d2d6c43f5a7c2165b4ee0f6cbe3cc1491d0f97163fa5329ebeab2b2adf10246c87382016fbe738c69dfd3f2253e93c906bf404cbf439b12a
2 parents ac43613 + 67887ae commit fd491ea

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)