]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
On FreeBSD, use fetch(1) to retrieve external content through URLs.
[nmh] / uip / mhfixmsg.c
index 3180e9ce3ce3c2b9cde53f34cfb145a5215a29e4..4d5083c64453766798f924e5d15531d8e41fae67 100644 (file)
@@ -675,7 +675,9 @@ replace_boundary (CT ct, char *file, char *boundary) {
         case BODY:
             fputs ("\n", fpout);
             /* buf will have a terminating NULL, skip it. */
-            fwrite (buf, 1, bufsz-1, fpout);
+            if ((int) fwrite (buf, 1, bufsz-1, fpout) < bufsz-1) {
+                advise (file, "fwrite");
+            }
             continue;
 
         case FILEEOF: