Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 5c992a1326bf2d79a28cb1b0a64ddbc42420073f 2 parents 2e3710b + 447b99c
@gitster gitster authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.