X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=curs_main.c;h=03315f2652885baa810a218e98bb7a8e2eba87ea;hb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e;hp=d367b398a0e5265de89e8cd4371c49d9cc08ca20;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b;p=apps%2Fmadmutt.git diff --git a/curs_main.c b/curs_main.c index d367b39..03315f2 100644 --- a/curs_main.c +++ b/curs_main.c @@ -15,6 +15,7 @@ #endif #include +#include #include #include "mutt.h" @@ -48,7 +49,6 @@ #include "mutt_sasl.h" #endif -#include "lib/str.h" #include "lib/debug.h" #include @@ -445,7 +445,7 @@ int mutt_index_menu (void) sidebar_set_current (Context->path); } - FOREVER { + for (;;) { tag = 0; /* clear the tag-prefix */ menu->max = Context ? Context->vcount : 0; @@ -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)