diff options
author | Tom Lane | 2001-12-30 23:09:42 +0000 |
---|---|---|
committer | Tom Lane | 2001-12-30 23:09:42 +0000 |
commit | ee051baeac9dce2dbfd5da50da21ae425b548c43 (patch) | |
tree | e1e24cb9f15642b9359eaf9bf6f8940bf9f76efc /contrib/pgcrypto/pgcrypto.c | |
parent | e7d9a6bf630e8784fc1723d138e4e4e973550017 (diff) |
Make sure that all <ctype.h> routines are called with unsigned char
values; it's not portable to call them with signed chars. I recall doing
this for the last release, but a few more uncasted calls have snuck in.
Diffstat (limited to 'contrib/pgcrypto/pgcrypto.c')
-rw-r--r-- | contrib/pgcrypto/pgcrypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/pgcrypto.c b/contrib/pgcrypto/pgcrypto.c index bf700e3da98..d3dc36dc9ae 100644 --- a/contrib/pgcrypto/pgcrypto.c +++ b/contrib/pgcrypto/pgcrypto.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pgcrypto.c,v 1.11 2001/11/20 15:50:53 momjian Exp $ + * $Id: pgcrypto.c,v 1.12 2001/12/30 23:09:41 tgl Exp $ */ #include <postgres.h> @@ -556,7 +556,7 @@ find_provider(text *name, p = VARDATA(name); for (i = 0; i < len; i++) - buf[i] = tolower(p[i]); + buf[i] = tolower((unsigned char) p[i]); buf[len] = 0; err = provider_lookup(buf, &res); |