fix: explicitly use unsigned char when checking isprint() (#2444)

This commit is contained in:
Charles Kerr 2022-01-18 15:20:49 -06:00 committed by GitHub
parent 5b8dae3557
commit 0166b6e688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ static void jsonStringFunc(tr_variant const* val, void* vdata)
break;
default:
if (isprint(sv.front()))
if (isprint((unsigned char)sv.front()))
{
*outwalk++ = sv.front();
}