1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Yet another place where someone was being careless about the arguments

of <ctype.h> macros.
This commit is contained in:
Tom Lane
2004-09-02 20:07:50 +00:00
parent a28961d5e0
commit 6ad853b975
2 changed files with 10 additions and 10 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.110 2004/08/29 05:06:49 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.111 2004/09/02 20:05:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -543,7 +543,7 @@ ArrayCount(char *str, int *dim, char typdelim)
itemdone = true;
nelems[nest_level - 1]++;
}
else if (!isspace(*ptr))
else if (!isspace((unsigned char) *ptr))
{
/*
* Other non-space characters must be after a
@ -572,7 +572,7 @@ ArrayCount(char *str, int *dim, char typdelim)
/* only whitespace is allowed after the closing brace */
while (*ptr)
{
if (!isspace(*ptr++))
if (!isspace((unsigned char) *ptr++))
ereport(ERROR,
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
errmsg("malformed array literal: \"%s\"", str)));