Skip to content

Commit

Permalink
Merge branch 'jk/maint-advise-vaddf'
Browse files Browse the repository at this point in the history
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
gitster committed Jul 24, 2012
2 parents f628825 + 447b99c commit 31c4c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advice.c
Original file line number Diff line number Diff line change
@@ -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 31c4c83

Please sign in to comment.