mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-14 18:37:03 +08:00
Fix unportable usage of isspace().
Must cast char argument to unsigned to avoid doing the wrong thing with high-bit-set characters. Oversight in commit 30b5ede7157e34e77c7914b8ecfd55aa8da6edc3.
This commit is contained in:
@ -1134,7 +1134,7 @@ escapeConnectionParameter(const char *src)
|
||||
|
||||
for (p = src; *p; p++)
|
||||
{
|
||||
if (isspace(*p))
|
||||
if (isspace((unsigned char) *p))
|
||||
{
|
||||
need_quotes = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user