use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / list.c
diff --git a/list.c b/list.c
index 550604a..54218b9 100644 (file)
--- a/list.c
+++ b/list.c
 #include <string.h>
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 
 #include "list.h"
-#include "lib/str.h"
 
 LIST *mutt_copy_list (LIST * p) {
   LIST *t, *r = NULL, *l = NULL;
 
   for (; p; p = p->next) {
     t = p_new(LIST, 1);
-    t->data = str_dup (p->data);
+    t->data = m_strdup(p->data);
     t->next = NULL;
     if (l) {
       r->next = t;
@@ -37,7 +37,7 @@ LIST *mutt_copy_list (LIST * p) {
 
 
 LIST *mutt_add_list (LIST * head, const char *data) {
-  size_t len = str_len (data);
+  size_t len = m_strlen(data);
   return (mutt_add_list_n (head, data, len ? len + 1 : 0));
 }