use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / lib / rx.c
index 4465255..5595108 100644 (file)
--- a/lib/rx.c
+++ b/lib/rx.c
@@ -9,15 +9,15 @@
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/str.h>
 
 #include "rx.h"
 
-#include "str.h"
 
 rx_t *rx_compile (const char *s, int flags) {
   rx_t *pp = p_new(rx_t, 1);
 
-  pp->pattern = str_dup (s);
+  pp->pattern = m_strdup(s);
   pp->rx = p_new(regex_t, 1);
   if (REGCOMP(pp->rx, NONULL (s), flags) != 0)
     rx_free (&pp);