X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhshowsbr.c;h=80fc9eb37e9576a1ff9df755e5bea81d5bab56c0;hb=298062b034bb8a0bc9583b261617bbfa3a6ec1ad;hp=99db9f83a418cfca89523af7f94b0149a6d2811f;hpb=5ccbd49adba7e6d48f4094fa6eade7a7fb8ec4cf;p=mmh diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 99db9f8..80fc9eb 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -655,14 +655,11 @@ show_multi (CT ct, int serial, int alternate) return show_multi_aux (ct, serial, alternate, cp); /* - * Use default method to display this multipart content - * if it is not a (nested) part of a multipart/alternative, - * or if it is one of the known subtypes of multipart. + * Use default method to display this multipart content. Even + * unknown types are displayable, since they're treated as mixed + * per RFC 2046. */ - if (!alternate || ct->c_subtype != MULTI_UNKNOWN) - return show_multi_internal (ct, serial, alternate); - - return NOTOK; + return show_multi_internal (ct, serial, alternate); } @@ -980,7 +977,7 @@ raw: } if (buflen <= 0 || - (ct->c_termproc && (size_t) buflen <= strlen(ct->c_termproc))) { + (ct->c_termproc && buflen <= (ssize_t) strlen(ct->c_termproc))) { /* content_error would provide a more useful error message * here, except that if we got overrun, it probably would * too.