X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=buffy.c;h=2aaa494306b6a22b4cae3f2be0e795763fd95324;hp=c7bbc406b5f6c8205b66c278c4d4a9ca877a8dcc;hb=688ac22f746f785c27ac99ac86aa85a3035a3638;hpb=6da6d7aac2c1a10e07957960dc4f27026075258e diff --git a/buffy.c b/buffy.c index c7bbc40..2aaa494 100644 --- a/buffy.c +++ b/buffy.c @@ -41,7 +41,7 @@ int buffy_lookup(const char* path) { int i; - if (!path || !*path) + if (m_strisempty(path)) return -1; for (i = 0; i < Incoming.len; i++) { @@ -64,7 +64,7 @@ int buffy_parse_mailboxes(BUFFER *path, BUFFER *s, unsigned long data, mutt_extract_token(path, s, 0); m_strcpy(buf, sizeof(buf), path->data); - if (data == M_UNMAILBOXES && !strcmp(buf, "*")) { + if (data == M_UNMAILBOXES && !m_strcmp(buf, "*")) { buffy_array_wipe(&Incoming); return 0; } @@ -319,7 +319,7 @@ int buffy_list (void) { char buffylist[LONG_STRING]; int have_unnotified = BuffyNotify; - int pos = 0, first = 0, i; + int pos = 0, first = 1, i; pos = m_strcpy(buffylist, sizeof(buffylist), _("New mail in "));