summaryrefslogtreecommitdiff
path: root/output/outas86.c
diff options
context:
space:
mode:
Diffstat (limited to 'output/outas86.c')
-rw-r--r--output/outas86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/output/outas86.c b/output/outas86.c
index 7af8d785..95675ef8 100644
--- a/output/outas86.c
+++ b/output/outas86.c
@@ -545,7 +545,7 @@ static void as86_write_section(struct Section *sect, int index)
int32_t tmplen = (length > 64 ? 64 : length);
fputc(0x40 | (tmplen & 0x3F), ofile);
saa_rnbytes(sect->data, buf, tmplen);
- fwrite(buf, 1, tmplen, ofile);
+ nasm_write(buf, tmplen, ofile);
length -= tmplen;
} while (length > 0);
break;