X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f7f4072fb55470c9e99b963276bdc7171d20636e..b0aa8cdb1c264e42d4931ca24968689c73381278:/uip/mhfixmsg.c diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index ee25624c..0c5c2cef 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -2526,7 +2526,7 @@ fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) { int fixed = 0; if (((value_len = strlen (value)) > 0) && - strncmp (value, "=?", 2) == 0 && + HasPrefix(value, "=?") && strncmp (&value[value_len - 2], "?=", 2) == 0) { /* Looks like an RFC 2047 encoded parameter. */ char decoded[PATH_MAX + 1];