Please sign in to comment.
Fix a bug in MCString::Encode()
For character values above 127, the signed char that could be used here did the wrong thing. That is, *it >> 4 returned a negative value and the array hexdigits was read indexed with that wrong value. Fix this by explicitly using unsigned char. Thanks to crocket for reporting this bug which he found with perform (broken entries after a restart/reload). Signed-off-by: Uli Schlachter <email@example.com>
- Loading branch information...