diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-08-23 15:35:53 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-08-23 15:35:53 +0200 |
commit | dbda9b549cab53a93c54f55347283c71f33635c3 (patch) | |
tree | ea83b08e5211a3955f6dda070cf12eb92991b3b7 /src/server/shared/Packets/ByteBuffer.h | |
parent | 537c4b7f2d8a38c6c87d74e8a972ec1cf9316a98 (diff) |
Core/PacketIO: Updated SMSG_GUILD_BANK_LIST
Diffstat (limited to 'src/server/shared/Packets/ByteBuffer.h')
-rwxr-xr-x | src/server/shared/Packets/ByteBuffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
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]; } |