1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-08 21:36:34 +00:00

ctype(3) functions need there arguments to be unsigned char

This commit is contained in:
Gerhard Rieger 2022-04-08 10:54:00 +02:00
parent 893d031cc2
commit 5edcb9b308
7 changed files with 11 additions and 8 deletions

View file

@ -1507,7 +1507,7 @@ static int openssl_delete_cert_info(void) {
progname = diag_get_string('p');
envprefix[0] = '\0'; strncat(envprefix, progname, XIO_ENVNAMELEN-1);
l = strlen(envprefix);
for (i = 0; i < l; ++i) envprefix[i] = toupper(envprefix[i]);
for (i = 0; i < l; ++i) envprefix[i] = toupper((unsigned char)envprefix[i]);
strncat(envprefix+l, "_OPENSSL_", XIO_ENVNAMELEN-l-1);
#if HAVE_VAR_ENVIRON