use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / curs_main.c
index d367b39..fe65287 100644 (file)
@@ -15,6 +15,7 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
@@ -48,7 +49,6 @@
 #include "mutt_sasl.h"
 #endif
 
-#include "lib/str.h"
 #include "lib/debug.h"
 
 #include <ctype.h>
@@ -966,7 +966,7 @@ int mutt_index_menu (void)
           unset_option (OPTHIDEREAD);
         }
         p_delete(&Context->pattern);
-        Context->pattern = str_dup (buf);
+        Context->pattern = m_strdup(buf);
       }
       if ((op == OP_TOGGLE_READ && mutt_pattern_func (M_LIMIT, NULL) == 0) ||
           mutt_pattern_func (M_LIMIT, _("Limit to messages matching: ")) == 0)