Revert network address information trimming (#15573)

This commit is contained in:
sonninnos 2023-08-11 17:17:53 +03:00 committed by GitHub
parent d8f9310100
commit 6733d6da57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,