From dbda9b549cab53a93c54f55347283c71f33635c3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 23 Aug 2012 15:35:53 +0200 Subject: Core/PacketIO: Updated SMSG_GUILD_BANK_LIST --- src/server/shared/Packets/ByteBuffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/shared') diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 4386ce03d42..0b08b4118d4 100755 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -456,7 +456,8 @@ class ByteBuffer //! without null-terminating the string void WriteString(std::string const& str) { - append(str.c_str(), str.length()); + if (size_t len = str.length()) + append(str.c_str(), len); } const uint8 *contents() const { return &_storage[0]; } -- cgit v1.2.3