wesnothd: Fix UB caused by incorrect use of simple_wml::set_attr
This commit is contained in:
parent
a31413cc82
commit
b9ee43f24f
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ void server::read_version(socket_ptr socket, std::shared_ptr<simple_wml::documen
|
|||
<< ":" << redirect_version.second["port"] << "\n";
|
||||
simple_wml::node& redirect = response.root().add_child("redirect");
|
||||
for(const auto& attr : redirect_version.second.attribute_range()) {
|
||||
redirect.set_attr(attr.first.c_str(), attr.second.str().c_str());
|
||||
redirect.set_attr_dup(attr.first.c_str(), attr.second.str().c_str());
|
||||
}
|
||||
send_to_player(socket, response);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue