]> diplodocus.org Git - nmh/blobdiff - uip/scansbr.c
Just reworded the bit about '%s' being safe not to quote (it's only safe not to
[nmh] / uip / scansbr.c
index 44cbf0d422896030c28d1fe5b859707c2394ea5f..143a059cb6c4fc1dcca6532a13ffeb1cd55ee89f 100644 (file)
@@ -353,7 +353,7 @@ finished:
     }
     *--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);