X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..939639fcf1dad1b8f3a85d641f41d11c49281f3c:/status.c diff --git a/status.c b/status.c index 09f76db..1bb9a5a 100644 --- a/status.c +++ b/status.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1996-2000 Michael R. Elkins + * Copyright (C) 1996-2000,2007 Michael R. Elkins * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -99,7 +99,7 @@ status_format_str (char *buf, size_t buflen, size_t col, char op, const char *sr if (Context && Context->path) { strfcpy (tmp, Context->path, sizeof (tmp)); - mutt_pretty_mailbox (tmp); + mutt_pretty_mailbox (tmp, sizeof (tmp)); } else strfcpy (tmp, _("(no mailbox)"), sizeof (tmp)); @@ -209,17 +209,15 @@ status_format_str (char *buf, size_t buflen, size_t col, char op, const char *sr case 'r': { - int i = 0; + size_t i = 0; if (Context) { i = option(OPTATTACHMSG) ? 3 : ((Context->readonly || - Context->dontwrite) ? 2 : (Context->changed || ( -#ifdef USE_IMAP - /* deleted doesn't necessarily mean changed in IMAP */ - Context->magic != M_IMAP && -#endif - Context->deleted)) ? 1 : 0); + Context->dontwrite) ? 2 : (Context->changed || + /* deleted doesn't necessarily mean changed in IMAP */ + (Context->magic != M_IMAP && + Context->deleted)) ? 1 : 0); } if (!StChars)