use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / pop / pop_auth.c
index 08d3183..09f0761 100644 (file)
@@ -12,6 +12,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/macros.h>
 
 #include "mutt.h"
 #include "ascii.h"
@@ -19,7 +20,6 @@
 #include "md5.h"
 #include "pop.h"
 
-#include "lib/intl.h"
 #include "lib/debug.h"
 
 #include <string.h>
@@ -166,7 +166,7 @@ void pop_apop_timestamp (POP_DATA * pop_data, char *buf)
 
   if ((p1 = strchr (buf, '<')) && (p2 = strchr (p1, '>'))) {
     p2[1] = '\0';
-    pop_data->timestamp = str_dup (p1);
+    pop_data->timestamp = m_strdup(p1);
   }
 }
 
@@ -305,7 +305,7 @@ pop_query_status pop_authenticate (POP_DATA * pop_data)
 
   if (PopAuthenticators && *PopAuthenticators) {
     /* Try user-specified list of authentication methods */
-    methods = str_dup (PopAuthenticators);
+    methods = m_strdup(PopAuthenticators);
     method = methods;
 
     while (method) {