mirror of
https://repo.or.cz/socat.git
synced 2025-07-04 20:26:33 +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
error.c
2
error.c
|
@ -357,7 +357,7 @@ void msg2(
|
|||
syslp = bufp;
|
||||
*bufp++ = "DINWEF"[level];
|
||||
#if 0 /* only for debugging socat */
|
||||
if (handler) bufp[-1] = tolower(bufp[-1]); /* for debugging, low chars indicate messages from signal handlers */
|
||||
if (handler) bufp[-1] = tolower((unsigned char)bufp[-1]); /* for debugging, low chars indicate messages from signal handlers */
|
||||
#endif
|
||||
*bufp++ = ' ';
|
||||
strncpy(bufp, text, BUFLEN-(bufp-buff)-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue