Browse files

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
  • Loading branch information...
2 parents 2e3710b + 447b99c commit 5c992a1326bf2d79a28cb1b0a64ddbc42420073f @gitster gitster committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 advice.c
View
2 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) {

0 comments on commit 5c992a1

Please sign in to comment.