From 00d3f131b4fdf5b9913f1ed3ef94fa535be11655 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 24 Oct 2016 00:15:33 +0100 Subject: [PATCH] fix_filename_param(): Replace strncmp() with HasSuffix(). --- uip/mhfixmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.56.0