mirror of
https://repo.or.cz/socat.git
synced 2025-07-06 21:16:34 +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
|
@ -1524,7 +1524,7 @@ int retropt_socket_pf(struct opt *opts, int *pf) {
|
|||
char *pfname;
|
||||
|
||||
if (retropt_string(opts, OPT_PROTOCOL_FAMILY, &pfname) >= 0) {
|
||||
if (isdigit(pfname[0])) {
|
||||
if (isdigit((unsigned char)pfname[0])) {
|
||||
*pf = strtoul(pfname, NULL /*!*/, 0);
|
||||
#if WITH_IP4
|
||||
} else if (!strcasecmp("inet", pfname) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue