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.
2 parents 03de03d + 6fc9ba6 commit 13f6a2dCopy full SHA for 13f6a2d
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