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();
}
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"); */