From: Ralph Corderoy Date: Sun, 23 Oct 2016 23:15:33 +0000 (+0100) Subject: fix_filename_param(): Replace strncmp() with HasSuffix(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/00d3f131b4fdf5b9913f1ed3ef94fa535be11655 fix_filename_param(): Replace strncmp() with HasSuffix(). --- diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 0c5c2cef..b4e8dc7f 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -2527,7 +2527,7 @@ fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) { if (((value_len = strlen (value)) > 0) && HasPrefix(value, "=?") && - strncmp (&value[value_len - 2], "?=", 2) == 0) { + HasSuffix(value, "?=")) { /* Looks like an RFC 2047 encoded parameter. */ char decoded[PATH_MAX + 1];