]> 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:36 +0000 (13:49 -0500)
commitd1f9ac5b100dbc4da02f0f209a2e7730bd5e83e9
treeccdb7eef33cee7b5c2a1d71d02df2c617c907eb4
parent4b0d28de06b28e57c540fca458e4853854fbeaf8
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