use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / color.c
diff --git a/color.c b/color.c
index 3bee605..81adfbb 100644 (file)
--- a/color.c
+++ b/color.c
@@ -12,6 +12,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
@@ -20,7 +21,6 @@
 #include "mutt_curses.h"
 #include "mapping.h"
 
-#include "lib/str.h"
 #include "lib/debug.h"
 
 #include <string.h>
@@ -510,7 +510,7 @@ add_pattern (COLOR_LINE ** top, const char *s, int sensitive,
       return (-1);
     }
     tmp->next = *top;
-    tmp->pattern = str_dup (s);
+    tmp->pattern = m_strdup(s);
 #ifdef HAVE_COLOR
     if (fg != -1 && bg != -1) {
       tmp->fg = fg;