Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jd/fix-strbuf-add-urlencode-bytes'
author
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Jan 2018 21:28:10 +0000
(13:28 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Jan 2018 21:28:10 +0000
(13:28 -0800)
Bytes with high-bit set were encoded incorrectly and made
credential helper fail.
* jd/fix-strbuf-add-urlencode-bytes:
strbuf: fix urlencode format string on signed char
strbuf.c
patch
|
blob
|
history
raw
(from parent 1:
843d94b
)
diff --git
a/strbuf.c
b/strbuf.c
index 8007be8fbafdc3f4542e27cfc9344044f71d43dc..1df674e9194ee6d5cd5386f477745ff6639b7b65 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-683,7
+683,7
@@
static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
(!reserved && is_rfc3986_reserved(ch)))
strbuf_addch(sb, ch);
else
- strbuf_addf(sb, "%%%02x", ch);
+ strbuf_addf(sb, "%%%02x",
(unsigned char)
ch);
}
}