p = name;
q = localencs[i].name;
while (*p || *q) {
- if (tolower(*p) != tolower(*q))
+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
break;
p++; q++;
}
p = name;
q = mimeencs[i].name;
while (*p || *q) {
- if (tolower(*p) != tolower(*q))
+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
break;
p++; q++;
}
p = name;
q = xencs[i].name;
while (*p || *q) {
- if (tolower(*p) != tolower(*q))
+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
break;
p++; q++;
}