Errorbuf[ (COLS < sizeof (Errorbuf) ? COLS : sizeof (Errorbuf)) - 2 ] = 0; clean_error_buf();
mutt_format_string (Errorbuf, sizeof (Errorbuf), 0, COLS-2, 0, 0, Errorbuf, sizeof (Errorbuf));
void mutt_curses_error (const char *fmt, ...){  va_list ap;  va_start (ap, fmt);  vsnprintf (Errorbuf, sizeof (Errorbuf), fmt, ap);  va_end (ap);    dprint (1, (debugfile, "%s\n", Errorbuf));  Errorbuf[ (COLS < sizeof (Errorbuf) ? COLS : sizeof (Errorbuf)) - 2 ] = 0;  clean_error_buf();  if (!option (OPTKEEPQUIET))  {    BEEP ();    SETCOLOR (MT_COLOR_ERROR);    mvaddstr (LINES-1, 0, Errorbuf);    clrtoeol ();    SETCOLOR (MT_COLOR_NORMAL);    mutt_refresh ();  }  set_option (OPTMSGERR);}