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
This commit is contained in:
Junio C Hamano
2016-08-08 14:48:41 -07:00
7 changed files with 9 additions and 9 deletions

2
http.c
View File

@ -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,