use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / from.c
diff --git a/from.c b/from.c
index f1b47cb..1ac13f5 100644 (file)
--- a/from.c
+++ b/from.c
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
 
-#include "lib/str.h"
 #include "lib/debug.h"
 
 #include <ctype.h>
@@ -44,7 +44,7 @@ static int is_day_name (const char *s)
 {
   int i;
 
-  if ((str_len (s) < 3) || !*(s + 3) || !ISSPACE (*(s + 3)))
+  if ((m_strlen(s) < 3) || !*(s + 3) || !ISSPACE (*(s + 3)))
     return 0;
   for (i = 0; i < 7; i++)
     if (str_ncasecmp (s, Weekdays[i], 3) == 0)