We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96f9edf commit 6fc9ba6Copy full SHA for 6fc9ba6
mp_fwrite.c
@@ -20,6 +20,7 @@ mp_err mp_fwrite(const mp_int *a, int radix, FILE *stream)
20
}
21
22
if ((err = mp_to_radix(a, buf, size, &written, radix)) == MP_OKAY) {
23
+ written--;
24
if (fwrite(buf, written, 1uL, stream) != 1uL) {
25
err = MP_ERR;
26
0 commit comments