mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Convert char array to string
This commit is contained in:
parent
85ab2c82aa
commit
8f8b3e0a34
|
@ -94,7 +94,10 @@ static int websocket_callback(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
|
||||
dbg_msg("websockets", "connection established with %s", addr_str);
|
||||
|
||||
pss->addr_str = addr_str;
|
||||
std::string addr_str_final;
|
||||
addr_str_final.append(addr_str);
|
||||
|
||||
pss->addr_str = addr_str_final;
|
||||
ctx_data->port_map[pss->addr_str] = pss;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue