Rocco Rutte:
[apps/madmutt.git] / status.c
index 2a6f70b..a470ae3 100644 (file)
--- a/status.c
+++ b/status.c
 #include "mapping.h"
 #include "mx.h"
 
+#include "lib/mem.h"
+#include "lib/intl.h"
+#include "lib/str.h"
+
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
@@ -236,7 +240,7 @@ static const char *status_format_str (char *buf, size_t buflen, char op,
 
       if (!StChars)
         buf[0] = 0;
-      else if (i >= mutt_strlen (StChars))
+      else if (i >= safe_strlen (StChars))
         buf[0] = StChars[0];
       else
         buf[0] = StChars[i];