cast to unsigned char for ctype calls on signed-char input

This commit is contained in:
Alhuda Khan committed 2026-10-11 23:54:28 +05:30
1 parent f651a6f34f
commit 942e458bf5
5 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -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;
}