mirror of
https://repo.or.cz/socat.git
synced 2025-07-03 20:16:32 +00:00
ctype(3) functions need there arguments to be unsigned char
This commit is contained in:
parent
893d031cc2
commit
5edcb9b308
7 changed files with 11 additions and 8 deletions
2
utils.c
2
utils.c
|
@ -97,7 +97,7 @@ static size_t sanitize_char(char c, char *o, int style) {
|
|||
int hn; /* high nibble */
|
||||
int ln; /* low nibble */
|
||||
int n; /* written chars */
|
||||
if (isprint(c)) {
|
||||
if (isprint((unsigned char)c)) {
|
||||
*o = c;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue