From e215da3754650d9dcc3b670d898404b6c060f0fc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 Oct 2014 05:37:48 +0200 Subject: [PATCH] Minor changes to menu_ticker_line --- frontend/menu/menu_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index 80123a7e93..a0620edbb9 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -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;