use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / crypt.c
diff --git a/crypt.c b/crypt.c
index 1512286..56b1571 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -16,6 +16,7 @@
 # include "config.h"
 #endif
 
+#include <lib-lib/str.h>
 #include <lib-lib/mem.h>
 #include <lib-lib/macros.h>
 
@@ -28,7 +29,6 @@
 #include "mutt_crypt.h"
 #include "pgp.h"
 
-#include "lib/str.h"
 
 #include <sys/wait.h>
 #include <string.h>
@@ -389,7 +389,7 @@ int mutt_is_application_smime (BODY * m)
 
     /* no .p7c, .p10 support yet. */
 
-    len = str_len (t) - 4;
+    len = m_strlen(t) - 4;
     if (len > 0 && *(t + len) == '.') {
       len++;
       if (!ascii_strcasecmp ((t + len), "p7m"))