X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=unmime.c;h=070d7945aee16f0c4cad27e53e3cd66fb6dfb02f;hb=9f99b463d27294281c778c9be890499ee1d84799;hp=f799ff92f51b5a22836a9135c43f9b4df8878bfb;hpb=e9212a2a7f3e4e720129a9422ff177e1c9fddda1;p=~andy%2Ffetchmail diff --git a/unmime.c b/unmime.c index f799ff92..070d7945 100644 --- a/unmime.c +++ b/unmime.c @@ -19,7 +19,7 @@ #include #include #include "fetchmail.h" -#include "i18n.h" +#include "gettext.h" static unsigned char unhex(unsigned char c) { @@ -459,7 +459,7 @@ int MimeBodyType(char *hdrs, int WantDecode) /* Check Content-Type to see if this is a multipart message */ if ( (CntType != NULL) && - ((strncasecmp(CntType, "multipart/mixed", 16) == 0) || + ((strncasecmp(CntType, "multipart/mixed", 15) == 0) || (strncasecmp(CntType, "message/", 8) == 0)) ) { char *p1 = GetBoundary(CntType); @@ -469,7 +469,6 @@ int MimeBodyType(char *hdrs, int WantDecode) the boundary string */ strcpy(MultipartDelimiter, "--"); strlcat(MultipartDelimiter, p1, sizeof(MultipartDelimiter)); - MultipartDelimiter[sizeof(MultipartDelimiter)-1] = '\0'; BodyType = (MSG_IS_8BIT | MSG_NEEDS_DECODE); } }