diff options
author | luk3yx <luk3yx@users.noreply.github.com> | 2020-09-27 01:31:54 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 15:31:54 +0200 |
commit | 09af0c5946c7082fc82563faf0ad9ef144fb9a06 (patch) | |
tree | f1ab2eb045c96c16ed58b09d7b036327ef4eccc4 /src | |
parent | c6e3050357e8378ad15e7fa7a9aa80f3936fbc2d (diff) | |
download | minetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.tar.gz minetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.tar.bz2 minetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.zip |
Remove null bytes from TOCLIENT_BLOCKDATA (#10433)
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 456edfeb8..d40ff259f 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2338,7 +2338,7 @@ void Server::SendBlockNoLock(session_t peer_id, MapBlock *block, u8 ver, block->serializeNetworkSpecific(os); std::string s = os.str(); - NetworkPacket pkt(TOCLIENT_BLOCKDATA, 2 + 2 + 2 + 2 + s.size(), peer_id); + NetworkPacket pkt(TOCLIENT_BLOCKDATA, 2 + 2 + 2 + s.size(), peer_id); pkt << block->getPos(); pkt.putRawString(s.c_str(), s.size()); |