projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9fc28a
)
Fix unportable usage of isspace().
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 1 Jun 2013 17:58:23 +0000
(13:58 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 1 Jun 2013 17:58:23 +0000
(13:58 -0400)
Must cast char argument to unsigned to avoid doing the wrong thing
with high-bit-set characters. Oversight in commit
30b5ede7157e34e77c7914b8ecfd55aa8da6edc3
.
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_basebackup/pg_basebackup.c
b/src/bin/pg_basebackup/pg_basebackup.c
index 1e22969d552eae9144e61b0e57ac3735d9ae14eb..56657a42c4075db4ed5c794cfbf4d2b4938e2f03 100644
(file)
--- a/
src/bin/pg_basebackup/pg_basebackup.c
+++ b/
src/bin/pg_basebackup/pg_basebackup.c
@@
-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;