X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pattern.c;h=03b394038157abfb521f26fd5bbd7e25592da654;hp=500d3b3575cfeab6cb8e811876f10d7b32846f8a;hb=d9960a434f5c00a534a0dabe02ae5ab8d4881569;hpb=21595f98b7c8132f99abb9fee60ecdce31fc980f diff --git a/pattern.c b/pattern.c index 500d3b3..03b3940 100644 --- a/pattern.c +++ b/pattern.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include "mutt.h" @@ -1170,7 +1171,7 @@ void mutt_check_simple (char *s, size_t len, const char *simple) if (!strchr (s, '~') && !strchr (s, '=')) { /* yup, so spoof a real request */ /* convert old tokens into the new format */ - if (ascii_strcasecmp ("all", s) == 0 || !str_cmp ("^", s) || !str_cmp (".", s)) /* ~A is more efficient */ + if (ascii_strcasecmp ("all", s) == 0 || !m_strcmp("^", s) || !m_strcmp(".", s)) /* ~A is more efficient */ strfcpy (s, "~A", len); else if (ascii_strcasecmp ("del", s) == 0) strfcpy (s, "~D", len); @@ -1326,7 +1327,7 @@ int mutt_search_command (int cur, int op) strfcpy (temp, buf, sizeof (temp)); mutt_check_simple (temp, sizeof (temp), NONULL (SimpleSearch)); - if (!SearchPattern || str_cmp (temp, LastSearchExpn)) { + if (!SearchPattern || m_strcmp(temp, LastSearchExpn)) { set_option (OPTSEARCHINVALID); strfcpy (LastSearch, buf, sizeof (LastSearch)); mutt_message _("Compiling search pattern...");