Skip to content

Commit a741e28

Browse files
committed
Merge branch 'jd/fix-strbuf-add-urlencode-bytes'
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
2 parents 843d94b + 4c267f2 commit a741e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
683683
(!reserved && is_rfc3986_reserved(ch)))
684684
strbuf_addch(sb, ch);
685685
else
686-
strbuf_addf(sb, "%%%02x", ch);
686+
strbuf_addf(sb, "%%%02x", (unsigned char)ch);
687687
}
688688
}
689689

0 commit comments

Comments
 (0)