Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove null bytes from TOCLIENT_BLOCKDATA (#10433)
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
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()); |
|
|