use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / recvattach.c
index a0afdea..dd7ef8e 100644 (file)
@@ -13,6 +13,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
@@ -30,7 +31,6 @@
 #include "copy.h"
 #include "mutt_crypt.h"
 
-#include "lib/str.h"
 
 #include <ctype.h>
 #include <stdlib.h>
@@ -106,7 +106,7 @@ void mutt_update_tree (ATTACHPTR ** idx, short idxlen)
         str_replace (&idx[x]->tree, buf);
     }
     else
-      idx[x]->tree = str_dup (buf);
+      idx[x]->tree = m_strdup(buf);
 
     if (2 * (idx[x]->level + 2) < sizeof (buf) && idx[x]->level) {
       s = buf + 2 * (idx[x]->level - 1);