mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix "array subscript is of type 'char'"
This commit is contained in:
parent
b19fed3c05
commit
035bbc5f8f
2 changed files with 5 additions and 4 deletions
|
|
@ -347,11 +347,12 @@ save_command_line(int argc, char *argv[]) {
|
|||
*dst++ = ' ';
|
||||
|
||||
while (*src != '\0' && dst < eob) {
|
||||
if (isalnum(*src) || *src == ',' || *src == '-' ||
|
||||
*src == '_' || *src == '.' || *src == '/')
|
||||
if (isalnum(*(unsigned char *)src) || *src == ',' ||
|
||||
*src == '-' || *src == '_' || *src == '.' ||
|
||||
*src == '/')
|
||||
{
|
||||
*dst++ = *src++;
|
||||
} else if (isprint(*src)) {
|
||||
} else if (isprint(*(unsigned char *)src)) {
|
||||
if (dst + 2 >= eob) {
|
||||
goto add_ellipsis;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1287,7 +1287,7 @@ parse_duration(cfg_parser_t *pctx, cfg_obj_t **ret) {
|
|||
|
||||
duration.unlimited = false;
|
||||
|
||||
if (toupper(TOKEN_STRING(pctx)[0]) == 'P') {
|
||||
if (toupper((unsigned char)TOKEN_STRING(pctx)[0]) == 'P') {
|
||||
result = duration_fromtext(&pctx->token.value.as_textregion,
|
||||
&duration);
|
||||
duration.iso8601 = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue