diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index 35f5e58bf9..6fa61f49df 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -571,7 +571,10 @@ void menu_ticker_line(char *buf, size_t len, unsigned index, const char *str, bo } if (!selected) - snprintf(buf, len, "%.*s...", len - 3, str); + { + strlcpy(buf, str, len + 1 - 3); + strlcat(buf, "...", len + 1); + } else { // Wrap long strings in options with some kind of ticker line.