summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:41 (GMT)
commit940622bc8b33e085f62c5bcfe6183fe6f57888e2 (patch)
tree317b4e1134c92f488f28280d7441db43fb9e3454 /http-push.c
parent68e80da479ff940aea3f34447336e523b448f34c (diff)
parentbc57b9c0cc5a123365a922fa1831177e3fd607ed (diff)
downloadgit-940622bc8b33e085f62c5bcfe6183fe6f57888e2.zip
git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.gz
git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.bz2
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-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index dacada9..704b1c8 100644
--- a/http-push.c
+++ b/http-push.c
@@ -1137,7 +1137,7 @@ static void remote_ls(const char *path, int flags,
ls.userData = userData;
ls.userFunc = userFunc;
- strbuf_addf(&out_buffer.buf, PROPFIND_ALL_REQUEST);
+ strbuf_addstr(&out_buffer.buf, PROPFIND_ALL_REQUEST);
dav_headers = curl_slist_append(dav_headers, "Depth: 1");
dav_headers = curl_slist_append(dav_headers, "Content-Type: text/xml");