Replace unchecked fwrite() calls
commite76a6260556d76b756ef56cdd4ca5b41e61259bc
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 21 Oct 2014 19:50:47 +0000 (21 12:50 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 21 Oct 2014 19:50:47 +0000 (21 12:50 -0700)
treed39495eb0516eccd9c3e89efbf4406d2e4ce4a08
parent505de5dc57788afb50f5c6bb65e39fd45f954e05
Replace unchecked fwrite() calls

Instead of having unchecked fwrite() calls, introduce nasm_write()
which does error checking (and fatal errors if the write fails).

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
13 files changed:
nasmlib.c
nasmlib.h
output/outas86.c
output/outbin.c
output/outcoff.c
output/outelf32.c
output/outelf64.c
output/outelfx32.c
output/outmac32.c
output/outmac64.c
output/outobj.c
output/outrdf2.c
saa.c