projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
30c3ad1
)
Fix infinite loop in function saa_fpwrite
author
Charles Crayne
<chuck@thor.crayne.org>
Mon, 8 Oct 2007 01:46:57 +0000
(18:46 -0700)
committer
Charles Crayne
<chuck@thor.crayne.org>
Mon, 8 Oct 2007 01:46:57 +0000
(18:46 -0700)
nasmlib.c
patch
|
blob
|
history
diff --git
a/nasmlib.c
b/nasmlib.c
index
7404483
..
9c24db7
100644
(file)
--- 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);
}