]> diplodocus.org Git - nmh/blobdiff - uip/mhshowsbr.c
Merge remote-tracking branch 'origin' into xoauth
[nmh] / uip / mhshowsbr.c
index 02b3641261f22f2244ae021b7431c259a31f9a00..a87778efcf7e4677a85b67317e140261d2205982 100644 (file)
@@ -1152,7 +1152,9 @@ iconv_start:
                    }
                    if (errno == EINVAL) {
                        /* middle of multi-byte sequence */
-                       write (fd, dest_buffer, outbytes_before - outbytes);
+                       if (write (fd, dest_buffer, outbytes_before - outbytes) < 0) {
+                           advise (dest, "write");
+                       }
                        fseeko (*fp, -inbytes, SEEK_CUR);
                        if (end > 0) bytes_to_read += inbytes;
                        /* advise(NULL, "convert_charset: EINVAL"); */