1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-20 13:29:07 +02:00

Merge branch 'jk/maint-advise-vaddf'

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
This commit is contained in:
Junio C Hamano 2012-07-24 14:05:08 -07:00
commit 31c4c833d7

View File

@ -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) {