diff options
author | madmaxoft <github@xoft.cz> | 2014-01-08 17:17:37 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-08 17:17:37 +0100 |
commit | 17363716a18e366e9bb0c94bd81628d0680d446a (patch) | |
tree | ae5ef10a37cc7b476d7a4018dd98bbb6c1df3670 /Tools/ProtoProxy/Connection.cpp | |
parent | Fixed AppendVPrintf() handling for large strings. (diff) | |
download | cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar.gz cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar.bz2 cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar.lz cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar.xz cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.tar.zst cuberite-17363716a18e366e9bb0c94bd81628d0680d446a.zip |
Diffstat (limited to 'Tools/ProtoProxy/Connection.cpp')
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index 10f2b4073..f38ea02ed 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -2390,12 +2390,12 @@ bool cConnection::HandleServerStatusResponse(void) { Response.assign(Response.substr(0, idx + sizeof(DescSearch) - 1) + "ProtoProxy: " + Response.substr(idx + sizeof(DescSearch) - 1)); } - cByteBuffer Packet(1000); + cByteBuffer Packet(Response.size() + 50); Packet.WriteVarInt(0); // Packet type - status response Packet.WriteVarUTF8String(Response); AString Pkt; Packet.ReadAll(Pkt); - cByteBuffer ToClient(1000); + cByteBuffer ToClient(Response.size() + 50); ToClient.WriteVarUTF8String(Pkt); CLIENTSEND(ToClient); return true; |