summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 7404483..9c24db7 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -727,6 +727,7 @@ void saa_fpwrite(struct SAA *s, FILE * fp)
size_t len;
saa_rewind(s);
+ len = s->datalen;
while ((data = saa_rbytes(s, &len)) != NULL)
fwrite(data, 1, len, fp);
}