X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sidebar.c;h=8c661f29eebd963e56b4e2949dd1c725504cb869;hb=6b7b63a19879252a83f7010a52204e366a544d7e;hp=e5ec1c2169f11be4640a4c0038f5e8c66281119a;hpb=841934011451205d8295ac955486f06c317fdf15;p=apps%2Fmadmutt.git diff --git a/sidebar.c b/sidebar.c index e5ec1c2..8c661f2 100644 --- a/sidebar.c +++ b/sidebar.c @@ -17,8 +17,13 @@ #include "mutt_curses.h" #include "sidebar.h" #include "buffy.h" -#include #include "keymap.h" + +#include "lib/mem.h" +#include "lib/str.h" +#include "lib/intl.h" + +#include #include /*BUFFY *CurBuffy = 0;*/ @@ -200,7 +205,7 @@ void set_curbuffy (char buf[LONG_STRING]) return; while (1) { - if (!strcmp (tmp->path, buf)) { + if (!mutt_strcmp (tmp->path, buf)) { CurBuffy = tmp; break; } @@ -219,7 +224,7 @@ void set_buffystats (CONTEXT * Context) if (!Context) return; while (tmp) { - if (strcmp (tmp->path, Context->path) == 0) { + if (mutt_strcmp (tmp->path, Context->path) == 0) { tmp->new = Context->new; tmp->msg_unread = Context->unread; tmp->msgcount = Context->msgcount; @@ -280,9 +285,9 @@ int draw_sidebar (int menu) move (lines, SidebarWidth - delim_len); if (option (OPTASCIICHARS)) addstr (NONULL (SidebarDelim)); - else if (!option (OPTASCIICHARS) && !strcmp (SidebarDelim, "|")) + else if (!option (OPTASCIICHARS) && !mutt_strcmp (SidebarDelim, "|")) addch (ACS_VLINE); - else if ((Charset_is_utf8) && !strcmp (SidebarDelim, "|")) + else if ((Charset_is_utf8) && !mutt_strcmp (SidebarDelim, "|")) addstr ("\342\224\202"); else addstr (NONULL (SidebarDelim)); @@ -318,7 +323,7 @@ int draw_sidebar (int menu) move (lines, 0); if (option (OPTSIDEBARNEWMAILONLY)) { if (tmp->msg_unread > 0) { - if (Context && !strcmp (tmp->path, Context->path)) { + if (Context && !mutt_strcmp (tmp->path, Context->path)) { printw ("%.*s", SidebarWidth - delim_len, make_sidebar_entry (basename (tmp->path), Context->msgcount, Context->unread,