Nico Golde:
[apps/madmutt.git] / imap / util.c
index 5c051a6..9a632a5 100644 (file)
@@ -19,6 +19,9 @@
 #include "imap_private.h"
 #include "mutt_ssl.h"
 
+#include "lib/mem.h"
+#include "lib/intl.h"
+
 #include <stdlib.h>
 #include <ctype.h>
 
@@ -486,7 +489,7 @@ void imap_unmunge_mbox_name (char *s)
   buf = safe_strdup (s);
   if (buf) {
     imap_utf7_decode (&buf);
-    strncpy (s, buf, strlen (s));
+    strncpy (s, buf, mutt_strlen (s));
   }
 
   FREE (&buf);