X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fimap.c;h=69d35d624da15d7b5ac2ace36fadf6c72dde9e0c;hb=cda74a06b6b5b719ae238c5b211b9aef55d64b2c;hp=cc9f60c6094b025349b1f5db30d84b78f4e43384;hpb=411ed80b130b6b4c49c01cf53c7fa6e80d59103a;p=apps%2Fmadmutt.git diff --git a/imap/imap.c b/imap/imap.c index cc9f60c..69d35d6 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -211,7 +211,7 @@ int imap_read_literal (FILE * fp, IMAP_DATA * idata, long bytes, progress_t* bar r = 0; #endif fputc (c, fp); - if (bar && pos % 1024) + if (bar && !(pos % 1024)) mutt_progress_bar (bar, pos); #ifdef DEBUG if (DebugLevel >= IMAP_LOG_LTRL) @@ -1520,7 +1520,7 @@ static int imap_complete_hosts (char *dest, size_t len) { } } - for (conn = mutt_socket_head (); conn->next; conn = conn->next) { + for (conn = mutt_socket_head (); conn && conn->next; conn = conn->next) { ciss_url_t url; char urlstr[LONG_STRING];