mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03: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
30b5ede715
.
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