Skip to content

Commit

Permalink
Revert network address information trimming (libretro#15573)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Aug 11, 2023
1 parent d8f9310 commit 6733d6d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions menu/menu_displaylist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6733d6d

Please sign in to comment.