Skip to content

Commit

Permalink
Merge branch 'jk/maint-advise-vaddf' into maint
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 30, 2012
2 parents 2e3710b + 447b99c commit 5c992a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advice.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void advise(const char *advice, ...)
const char *cp, *np; const char *cp, *np;


va_start(params, advice); va_start(params, advice);
strbuf_addf(&buf, advice, params); strbuf_vaddf(&buf, advice, params);
va_end(params); va_end(params);


for (cp = buf.buf; *cp; cp = np) { for (cp = buf.buf; *cp; cp = np) {
Expand Down

0 comments on commit 5c992a1

Please sign in to comment.