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++)
|
for (i = 0; i < interfaces.size; i++)
|
||||||
{
|
{
|
||||||
char host_trimmed[64];
|
|
||||||
struct net_ifinfo_entry *entry = &interfaces.entries[i];
|
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",
|
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,
|
if (menu_entries_append(list, buf, entry->name,
|
||||||
MENU_ENUM_LABEL_NETWORK_INFO_ENTRY,
|
MENU_ENUM_LABEL_NETWORK_INFO_ENTRY,
|
||||||
|
|
Loading…
Reference in New Issue