From: René Scharfe Date: Sun, 25 Mar 2018 10:57:50 +0000 (+0200) Subject: run-command: use strbuf_addstr() for adding a string to a strbuf X-Git-Tag: v2.18.0-rc0~153^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/248f66ed8e055f59ad38daed6b6606336ff63c58?hp=--cc run-command: use strbuf_addstr() for adding a string to a strbuf Patch generated with Coccinelle and contrib/coccinelle/strbuf.cocci. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 248f66ed8e055f59ad38daed6b6606336ff63c58 diff --git a/run-command.c b/run-command.c index a483d5904a..84899e423f 100644 --- a/run-command.c +++ b/run-command.c @@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp) if (!trace_want(&trace_default_key)) return; - strbuf_addf(&buf, "trace: run_command:"); + strbuf_addstr(&buf, "trace: run_command:"); if (cp->dir) { strbuf_addstr(&buf, " cd "); sq_quote_buf_pretty(&buf, cp->dir);