diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-10 11:55:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-10 11:55:34 -0700 |
commit | 574a31b5b76b82b18e85825385d8594372152a8f (patch) | |
tree | 5a49cf8482dbd9f8d777bf0de1e350ed2268d266 /http.c | |
parent | 9a54075c80e8fb30fe267ac57d5e7ef652bc901f (diff) | |
parent | bc57b9c0cc5a123365a922fa1831177e3fd607ed (diff) | |
download | git-574a31b5b76b82b18e85825385d8594372152a8f.tar.gz |
Merge branch 'rs/use-strbuf-addstr' into maint
* rs/use-strbuf-addstr:
use strbuf_addstr() instead of strbuf_addf() with "%s"
use strbuf_addstr() for adding constant strings to a strbuf
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1105,7 +1105,7 @@ void append_remote_object_url(struct strbuf *buf, const char *url, strbuf_addf(buf, "objects/%.*s/", 2, hex); if (!only_two_digit_prefix) - strbuf_addf(buf, "%s", hex+2); + strbuf_addstr(buf, hex + 2); } char *get_remote_object_url(const char *url, const char *hex, |