]> 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:59 +0000 (13:49 -0500)
commit941602da1f615bb6c98acbf822a15a99fbc99ecd
tree637cb69e27e8172a6a1279f14ec2232089b2b407
parent9ce323f612ab19eda1322bb6cf8227b835027511
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