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

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();
}