summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.c b/network.c
index 8a522c4af..31b3b09aa 100644
--- a/network.c
+++ b/network.c
@@ -878,7 +878,7 @@ void NetworkRebuildHostList()
NetworkGameList *item = _network_game_list;
while (item != NULL && i != lengthof(_network_host_list)) {
if (item->manually)
- _network_host_list[i++] = strdup(item->info.hostname);
+ _network_host_list[i++] = str_fmt("%s:%i", item->info.hostname, item->port);
item = item->next;
}