X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/adfed5f72bc07ac7de8dfc62188338d4d4f25a38..64ef3b3008a7b990c2c856c24354ed2cabcc76dc:/uip/mhshowsbr.c diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 02b36412..f410d1a4 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -126,11 +126,12 @@ show_all_messages (CT *cts, int concatsw, int textonly, int inlineonly) ct = *ctp; /* if top-level type is ok, then display message */ - if (type_ok (ct, 1)) + if (type_ok (ct, 1)) { if (headersw) output_header(ct, hfmt); show_single_message (ct, formsw, concatsw, textonly, inlineonly, mfmt); + } } free_markercomps(); @@ -1152,7 +1153,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"); */