]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Replace v?fprintf(stdout, ...) with v?printf(...).
[nmh] / uip / mhfixmsg.c
index ee25624..e958459 100644 (file)
@@ -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)  &&
-        strncmp (value, "=?", 2) == 0  &&
-        strncmp (&value[value_len - 2], "?=", 2) == 0) {
+    if (HasPrefix(value, "=?") && HasSuffix(value, "?=")) {
         /* Looks like an RFC 2047 encoded parameter. */
         char decoded[PATH_MAX + 1];