all the ctype.h functions' argument must be representable as an unsigned
char or as EOF, otherwise the behavior is undefined.
char
base64dec_getc(const char **src)
{
char
base64dec_getc(const char **src)
{
- while (**src && !isprint(**src))
+ while (**src && !isprint((unsigned char)**src))
(*src)++;
return **src ? *((*src)++) : '='; /* emulate padding if string ends */
}
(*src)++;
return **src ? *((*src)++) : '='; /* emulate padding if string ends */
}