aboutsummaryrefslogtreecommitdiff
path: root/advice.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-24 14:05:08 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-24 14:05:08 -0700
commit31c4c833d7c39e7fd681d5c0a4809030cbe455f5 (patch)
tree7c514a77c46301cc164668e49321839b553408d4 /advice.c
parentf628825481b706baa3d9bf871a081cb1285c2778 (diff)
parent447b99c8b1102746054644acd268f4c1b115a9f8 (diff)
downloadgit-31c4c833d7c39e7fd681d5c0a4809030cbe455f5.tar.gz
git-31c4c833d7c39e7fd681d5c0a4809030cbe455f5.tar.xz
Merge branch 'jk/maint-advise-vaddf'
The advise() function did not use varargs correctly to format its message. * jk/maint-advise-vaddf: advice: pass varargs to strbuf_vaddf, not strbuf_addf
Diffstat (limited to 'advice.c')
-rw-r--r--advice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/advice.c b/advice.c
index a492eea24..edfbd4a6f 100644
--- a/advice.c
+++ b/advice.c
@@ -32,7 +32,7 @@ void advise(const char *advice, ...)
const char *cp, *np;
va_start(params, advice);
- strbuf_addf(&buf, advice, params);
+ strbuf_vaddf(&buf, advice, params);
va_end(params);
for (cp = buf.buf; *cp; cp = np) {