Minor changes to menu_ticker_line

This commit is contained in:
twinaphex 2014-10-11 05:37:48 +02:00
parent 8e98619ea1
commit e215da3754

View File

@ -252,8 +252,9 @@ void menu_ticker_line(char *buf, size_t len, unsigned index,
{
strlcpy(buf, str, len + 1 - 3);
strlcat(buf, "...", len + 1);
return;
}
else
{
/* Wrap long strings in options with some kind of ticker line. */
unsigned ticker_period = 2 * (str_len - len) + 4;