*/
struct sidebar_entry
{
- char box[SHORT_STRING];
+ char box[STRING];
BUFFY *buffy;
};
{
struct sidebar_entry *sbe = (struct sidebar_entry *) data;
unsigned int optional;
- char fmt[SHORT_STRING], buf[SHORT_STRING];
+ char fmt[STRING];
if (!sbe || !dest)
return src;
mutt_format_s (dest, destlen, prefix, "!!");
else
{
- snprintf (buf, sizeof (buf), "%d!", b->msg_flagged);
- mutt_format_s (dest, destlen, prefix, buf);
+ snprintf (fmt, sizeof (fmt), "%d!", b->msg_flagged);
+ mutt_format_s (dest, destlen, prefix, fmt);
}
break;
}
/* Force string to be exactly the right width */
int w = mutt_strwidth (buf);
int s = strlen (buf);
+ width = MIN(buflen, width);
if (w < width)
{
/* Pad with spaces */
safe_strcat (sidebar_folder_name, sfn_len, tmp_folder_name);
}
}
- char str[SHORT_STRING];
+ char str[STRING];
make_sidebar_entry (str, sizeof (str), w, sidebar_folder_name, b);
printw ("%s", str);
if (sidebar_folder_depth > 0)