Silence negative array index warning with toupper

Cast to (unsigned char).
This commit is contained in:
Mark Andrews 2022-08-19 11:13:59 +10:00
parent ee72d4f2f0
commit ea13820023

View file

@ -63,7 +63,7 @@ isccfg_duration_fromtext(isc_textregion_t *source,
duration->unlimited = false;
/* Every duration starts with 'P' */
if (toupper(str[0]) != 'P') {
if (toupper((unsigned char)str[0]) != 'P') {
return (ISC_R_BADNUMBER);
}
P = str;