aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluk3yx <luk3yx@users.noreply.github.com>2020-09-27 01:31:54 +1200
committerGitHub <noreply@github.com>2020-09-26 15:31:54 +0200
commit09af0c5946c7082fc82563faf0ad9ef144fb9a06 (patch)
treef1ab2eb045c96c16ed58b09d7b036327ef4eccc4
parentc6e3050357e8378ad15e7fa7a9aa80f3936fbc2d (diff)
downloadminetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.tar.gz
minetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.tar.bz2
minetest-09af0c5946c7082fc82563faf0ad9ef144fb9a06.zip
Remove null bytes from TOCLIENT_BLOCKDATA (#10433)
-rw-r--r--src/server.cpp2
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());