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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Mar 25, 2018 at 12:57 UTC
248f66ed8e055f59ad38daed6b6606336ff63c58
1 file changed
+1
-1
run-command.c
+1
-1
@@ -621,7 +621,7 @@ static void trace_run_command(const struct child_process *cp)
621
if (!trace_want(&trace_default_key))
622
return;
623
624
- strbuf_addf(&buf, "trace: run_command:");
624
+ strbuf_addstr(&buf, "trace: run_command:");
625
if (cp->dir) {
626
strbuf_addstr(&buf, " cd ");
627
sq_quote_buf_pretty(&buf, cp->dir);