projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Changed configure.in to use gcc -Wall even without --enable-debug, to prevent
[mmh]
/
uip
/
scansbr.c
diff --git
a/uip/scansbr.c
b/uip/scansbr.c
index
44cbf0d
..
143a059
100644
(file)
--- a/
uip/scansbr.c
+++ b/
uip/scansbr.c
@@
-353,7
+353,7
@@
finished:
}
*--nxtbuf = tmpbuf;
}
*--nxtbuf = tmpbuf;
- if (outnum && fclose (scnout) == EOF)
+ if (outnum && (ferror(scnout) || fclose (scnout) == EOF))
adios (scnmsg, "write error on");
return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG);
adios (scnmsg, "write error on");
return (state != FILEEOF ? SCNERR : encrypted ? SCNENC : SCNMSG);