use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / recvcmd.c
index 5a5e1c4..5cfdf9f 100644 (file)
--- a/recvcmd.c
+++ b/recvcmd.c
@@ -12,6 +12,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
@@ -29,7 +30,6 @@
 #include "copy.h"
 #include "mutt_idna.h"
 
-#include "lib/str.h"
 
 /* some helper functions to verify that we are exclusively operating
  * on message/rfc822 attachments
@@ -689,7 +689,7 @@ attach_reply_envelope_defaults (ENVELOPE * env, ATTACHPTR ** idx,
     /* in case followup set Newsgroups: with Followup-To: if it present */
     if (!env->newsgroups && curenv &&
         str_casecmp (curenv->followup_to, "poster"))
-      env->newsgroups = str_dup (curenv->followup_to);
+      env->newsgroups = m_strdup(curenv->followup_to);
   }
   else
 #endif