X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Frx.c;h=55951085ef85a605ebfc148d4b27c8a327556341;hp=446525584e869d51c8cdce69a065422a05737b58;hb=7f7a0be369840b290248e5b0302beb447fa1b3cd;hpb=617e7d83d14e14e6a520a48e75437211b16c8834 diff --git a/lib/rx.c b/lib/rx.c index 4465255..5595108 100644 --- a/lib/rx.c +++ b/lib/rx.c @@ -9,15 +9,15 @@ #endif #include +#include #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);