*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;
}
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;