Skip to content
Permalink
Browse files

Fix invalid cast fix resulting in chat messages beeing limited to 256…

… bytes
  • Loading branch information...
sapier sapier
sapier authored and sapier committed May 11, 2014
1 parent b16cbba commit 5c6cf630de1733dfc8de24b49ddc90333dec2d2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client.cpp
@@ -2083,7 +2083,7 @@ void Client::sendChatMessage(const std::wstring &message)
// Write length
size_t messagesize = message.size();
assert(messagesize <= 0xFFFF);
writeU16(buf, (u16) (messagesize & 0xFF));
writeU16(buf, (u16) (messagesize & 0xFFFF));
os.write((char*)buf, 2);

// Write string

0 comments on commit 5c6cf63

Please sign in to comment.
You can’t perform that action at this time.