use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / status.c
index 2a925b6..95ad3ff 100644 (file)
--- a/status.c
+++ b/status.c
@@ -12,6 +12,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
@@ -22,7 +23,6 @@
 #include "mx.h"
 #include "buffy.h"
 
-#include "lib/str.h"
 
 #include <string.h>
 #include <ctype.h>
@@ -245,7 +245,7 @@ static const char *status_format_str (char *buf, size_t buflen, char op,
 
       if (!StChars)
         buf[0] = 0;
-      else if (i >= str_len (StChars))
+      else if (i >= m_strlen(StChars))
         buf[0] = StChars[0];
       else
         buf[0] = StChars[i];