Added an explanatory comment for commit #39368

svn-id: r39369
This commit is contained in:
Filippos Karapetis 2009-03-13 07:56:06 +00:00
parent f4eb159eb8
commit 0916523763

View File

@ -414,6 +414,10 @@ static int is_print_str(char *str) {
if (len == 0) return 1;
while (*str) {
// We're ANDing the string with 0xFF to prevent a situation
// where MSVC could sometimes falsely parse the character as
// multibyte/Unicode, thereby overflowing an assertion inside
// isprint(). This occurs after the intro of LSL5, for example.
if (isprint((*str & 0xFF))) printable++;
str++;
}