added trailing \0 to send of packets sent, to conform with what Wesnoth does
This commit is contained in:
parent
397b350a75
commit
782c899a7f
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ sub write_packet
|
|||
my ($sock,$doc) = @_;
|
||||
|
||||
my $data = &wml::write_binary($wml_net::outgoing_schemas{$sock},$doc);
|
||||
$data .= chr 0;
|
||||
my $header = pack('N',length $data);
|
||||
print $sock "$header$data" or die "Error writing to socket: $!";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue