Skip to content
Browse files

Fixed bug where certain UCS-2 codepoints were not decoded correctly (…

…e.g. 246).
  • Loading branch information...
1 parent 2cc3e06 commit 74e2f42f7725234f09c66857640f85efe920acb3 @fredreichbier committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/packets.cpp
View
2 src/packets.cpp
@@ -1534,7 +1534,7 @@ Packet& Packet::operator>>(std::string& str)
if (lenval && haveData(2 * lenval)) // We ASSUME that every character takes 2 bytes. DANGEROUS.
{
- char buf[2];
+ unsigned char buf[2];
t_codepoint ccp;
for (size_t i = 0; i < lenval; ++i)

0 comments on commit 74e2f42

Please sign in to comment.
Something went wrong with that request. Please try again.