mirror of
https://github.com/git-for-windows/git.git
synced 2025-12-13 00:06:03 -06:00
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
This commit is contained in:
commit
5c992a1326
2
advice.c
2
advice.c
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user