We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135ca41 commit 00084a2Copy full SHA for 00084a2
1 file changed
common_func.c
@@ -77,7 +77,9 @@ char* str_tolower(const char* str)
77
char* buf = rsh_strdup(str);
78
char* p;
79
if (buf) {
80
- for (p = buf; *p; p++) *p = tolower(*p);
+ for (p = buf; *p; p++)
81
+ if ((0xC0 & (unsigned char)*p) == 0x40)
82
+ *p = tolower(*p);
83
}
84
return buf;
85
0 commit comments