]> granicus.if.org Git - postgresql/commit
Fix unportable usage of <ctype.h> functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Nov 2017 18:49:36 +0000 (13:49 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Nov 2017 18:49:54 +0000 (13:49 -0500)
commit1a93c2536a75e7759420e8f9a95e2076da9135df
tree227f5200429003ddc8a3e3d558c109065cbd6f62
parent0a13f1966d4cda2eb49dec0324ab5d482bbdd956
Fix unportable usage of <ctype.h> functions.

isdigit(), isspace(), etc are likely to give surprising results if passed a
signed char.  We should always cast the argument to unsigned char to avoid
that.  Error in commit 63d6b97fd, found by buildfarm member gaur.
Back-patch to 9.3, like that commit.
src/interfaces/ecpg/ecpglib/data.c