mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Revert network address information trimming (#15573)
This commit is contained in:
parent
d8f9310100
commit
6733d6da57
@ -7770,15 +7770,10 @@ unsigned menu_displaylist_build_list(
|
||||
|
||||
for (i = 0; i < interfaces.size; i++)
|
||||
{
|
||||
char host_trimmed[64];
|
||||
struct net_ifinfo_entry *entry = &interfaces.entries[i];
|
||||
|
||||
/* Trim "%"-suffix from host */
|
||||
strlcpy(host_trimmed, entry->host, sizeof(host_trimmed));
|
||||
host_trimmed[string_index_last_occurance(host_trimmed, '%')] = '\0';
|
||||
|
||||
snprintf(buf + _len, sizeof(buf) - _len, " (%s): %s\n",
|
||||
entry->name, host_trimmed);
|
||||
entry->name, entry->host);
|
||||
|
||||
if (menu_entries_append(list, buf, entry->name,
|
||||
MENU_ENUM_LABEL_NETWORK_INFO_ENTRY,
|
||||
|
Loading…
x
Reference in New Issue
Block a user