Fix unportable use of isprint().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9e20406dd847d0f8c1cbd803786c6d0ad33bcbdd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-03-31T21:14:16Z
Releases: 14.0
Fix unportable use of isprint().

We must cast the arguments of <ctype.h> functions to unsigned
char to avoid problems where char is signed.

Speaking of which, considering that this *is* a <ctype.h> function,
it's rather remarkable that we aren't seeing more complaints about
not having included that header.

Per buildfarm.

Files

PathChange+/−
src/interfaces/libpq/fe-trace.c modified +4 −2