Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-09 00:48:41 +0300
committerJunio C Hamano <gitster@pobox.com>2016-08-09 00:48:41 +0300
commit940622bc8b33e085f62c5bcfe6183fe6f57888e2 (patch)
tree317b4e1134c92f488f28280d7441db43fb9e3454 /http.c
parent68e80da479ff940aea3f34447336e523b448f34c (diff)
parentbc57b9c0cc5a123365a922fa1831177e3fd607ed (diff)
Merge branch 'rs/use-strbuf-addstr'
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index e81dd132d4..cd40b012f8 100644
--- a/http.c
+++ b/http.c
@@ -1225,7 +1225,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,