Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/maint-advise-vaddf' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Jul 2012 20:05:25 +0000
(13:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 Jul 2012 20:05:25 +0000
(13:05 -0700)
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
advice.c
patch
|
blob
|
history
raw
(from parent 1:
2e3710b
)
diff --git
a/advice.c
b/advice.c
index a492eea24f71ad2d2082efce9d1d925a5766b111..edfbd4a6fb01a6905671d6d842d22c4869fad729 100644
(file)
--- a/
advice.c
+++ b/
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_
v
addf(&buf, advice, params);
va_end(params);
for (cp = buf.buf; *cp; cp = np) {