added trailing \0 to send of packets sent, to conform with what Wesnoth does

This commit is contained in:
David White 2007-06-29 02:16:16 +00:00
parent 397b350a75
commit 782c899a7f

View file

@ -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: $!";
}