summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-29 17:59:49 +0100
committermadmaxoft <github@xoft.cz>2014-01-29 17:59:49 +0100
commit04107fa85d142e31576042cff5677a36e392f9f4 (patch)
tree54a30a47f0e4bd494588bed2607a1aed89c9dc12 /src/Protocol/Protocol17x.cpp
parentPlugin files are loaded in alphabetical order. (diff)
downloadcuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar.gz
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar.bz2
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar.lz
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar.xz
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.tar.zst
cuberite-04107fa85d142e31576042cff5677a36e392f9f4.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 0e9759194..04bade867 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -985,10 +985,11 @@ void cProtocol172::SendUpdateSign(int a_BlockX, int a_BlockY, int a_BlockZ, cons
Pkt.WriteInt(a_BlockX);
Pkt.WriteShort((short)a_BlockY);
Pkt.WriteInt(a_BlockZ);
- Pkt.WriteString(a_Line1);
- Pkt.WriteString(a_Line2);
- Pkt.WriteString(a_Line3);
- Pkt.WriteString(a_Line4);
+ // Need to send only up to 15 chars, otherwise the client crashes (#598)
+ Pkt.WriteString(a_Line1.substr(0, 15));
+ Pkt.WriteString(a_Line2.substr(0, 15));
+ Pkt.WriteString(a_Line3.substr(0, 15));
+ Pkt.WriteString(a_Line4.substr(0, 15));
}