use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / imap / mx_imap.c
index 29abeec..a851537 100644 (file)
@@ -10,6 +10,7 @@
 #include <sys/stat.h>
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 
 #include "mutt.h"
 #include "imap_private.h"
@@ -17,7 +18,6 @@
 #include "mx.h"
 #include "mx_imap.h"
 
-#include "lib/str.h"
 
 #include "url.h"
 
@@ -43,7 +43,7 @@ static int imap_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr)
     mutt_perror (tmp);
     return (-1);
   }
-  msg->path = str_dup (tmp);
+  msg->path = m_strdup(tmp);
   return 0;
 }