mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
fix compile warnings
This commit is contained in:
parent
f2e8f1f1fd
commit
5e839e5d74
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user