ProtoProxy: Fixed favicon relaying.
The buffer was too small for the favicon; now it's dynamic.
This commit is contained in:
parent
38d0bdf00a
commit
17363716a1
@ -2390,12 +2390,12 @@ bool cConnection::HandleServerStatusResponse(void)
|
|||||||
{
|
{
|
||||||
Response.assign(Response.substr(0, idx + sizeof(DescSearch) - 1) + "ProtoProxy: " + Response.substr(idx + sizeof(DescSearch) - 1));
|
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.WriteVarInt(0); // Packet type - status response
|
||||||
Packet.WriteVarUTF8String(Response);
|
Packet.WriteVarUTF8String(Response);
|
||||||
AString Pkt;
|
AString Pkt;
|
||||||
Packet.ReadAll(Pkt);
|
Packet.ReadAll(Pkt);
|
||||||
cByteBuffer ToClient(1000);
|
cByteBuffer ToClient(Response.size() + 50);
|
||||||
ToClient.WriteVarUTF8String(Pkt);
|
ToClient.WriteVarUTF8String(Pkt);
|
||||||
CLIENTSEND(ToClient);
|
CLIENTSEND(ToClient);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user