mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix: explicitly use unsigned char when checking isprint() (#2444)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user