Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita149d8b

Browse files
committed
Fix unportable usage of isspace().
Must cast char argument to unsigned to avoid doing the wrong thingwith high-bit-set characters. Oversight in commit30b5ede.
1 parentc9fc28a commita149d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ escapeConnectionParameter(const char *src)
11341134

11351135
for (p=src;*p;p++)
11361136
{
1137-
if (isspace(*p))
1137+
if (isspace((unsignedchar)*p))
11381138
{
11391139
need_quotes= true;
11401140
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp