aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-30 13:05:25 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-30 13:05:25 -0700
commit5c992a1326bf2d79a28cb1b0a64ddbc42420073f (patch)
tree02de88d553b9c0fbf58a04078689a3cdfb45a399
parent2e3710bdf945dbffd89c28bc6c12f7ee7f0f55a8 (diff)
parent447b99c8b1102746054644acd268f4c1b115a9f8 (diff)
downloadgit-5c992a1326bf2d79a28cb1b0a64ddbc42420073f.tar.gz
git-5c992a1326bf2d79a28cb1b0a64ddbc42420073f.tar.xz
Merge branch 'jk/maint-advise-vaddf' into maint
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
-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) {