(svn r15990) -Codechange: provide a thread safe variant of GetAddressAsString.

This commit is contained in:
rubidium
2009-04-08 21:11:16 +00:00
parent 6c6fb6a927
commit 19b50f8ed8
3 changed files with 23 additions and 10 deletions

View File

@@ -416,7 +416,7 @@ void NetworkUDPQueryServerThread(void *pntr)
/* Clear item in gamelist */
NetworkGameList *item = CallocT<NetworkGameList>(1);
item->address = *info;
strecpy(item->info.server_name, info->GetAddressAsString(), lastof(item->info.server_name));
info->GetAddressAsString(item->info.server_name, lastof(item->info.server_name));
strecpy(item->info.hostname, info->GetHostname(), lastof(item->info.hostname));
item->manually = info->manually;
NetworkGameListAddItemDelayed(item);