X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/f6c3a4d9f5b6a13741331645e98baec9a0d8897e..3ab1e9323e964d5377952a2b666ce91bab39c45a:/uip/mhfixmsg.c diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 0c5c2cef..e9584593 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -2522,12 +2522,9 @@ fix_always (CT ct, int *message_mods) { */ static int fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) { - size_t value_len; int fixed = 0; - if (((value_len = strlen (value)) > 0) && - HasPrefix(value, "=?") && - strncmp (&value[value_len - 2], "?=", 2) == 0) { + if (HasPrefix(value, "=?") && HasSuffix(value, "?=")) { /* Looks like an RFC 2047 encoded parameter. */ char decoded[PATH_MAX + 1];