mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 09:06:26 -04:00
Silence negative array index warning with toupper
Cast to (unsigned char).
This commit is contained in:
parent
ee72d4f2f0
commit
ea13820023
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue