cast to unsigned char for ctype calls on signed-char input
This commit is contained in:
1 parent
f651a6f34f
commit
942e458bf5
5 files changed
+10
-8
No files matched your search
+1
-1
@@ -792,7 +792,7 @@ bool CClient::IsValidIdentifier(const CString& sIdentifier) {
|
||||
|
||||
const char* p = sIdentifier.c_str();
|
||||
while (*p) {
|
||||
if (*p != '_' && *p != '-' && !isalnum(*p)) {
|
||||
if (*p != '_' && *p != '-' && !isalnum((unsigned char)*p)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user