X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib%2Frx.c;h=55951085ef85a605ebfc148d4b27c8a327556341;hb=3e611c4b53a33408955152e1c9336f8643ea096e;hp=616d82452a4847277d40e71e15ff0ab76874d070;hpb=b3cb6ed8d36c550a2e589910ce51bbc8352ff57c;p=apps%2Fmadmutt.git diff --git a/lib/rx.c b/lib/rx.c index 616d824..5595108 100644 --- a/lib/rx.c +++ b/lib/rx.c @@ -9,16 +9,15 @@ #endif #include +#include #include "rx.h" -#include "mem.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);