diff options
| author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:41 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:41 -0700 |
| commit | 940622bc8b33e085f62c5bcfe6183fe6f57888e2 (patch) | |
| tree | 317b4e1134c92f488f28280d7441db43fb9e3454 /builtin/fmt-merge-msg.c | |
| parent | Merge branch 'rs/st-mult' (diff) | |
| parent | use strbuf_addstr() instead of strbuf_addf() with "%s" (diff) | |
| download | git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.tar.gz git-940622bc8b33e085f62c5bcfe6183fe6f57888e2.zip | |
Merge branch 'rs/use-strbuf-addstr'
* rs/use-strbuf-addstr:
use strbuf_addstr() instead of strbuf_addf() with "%s"
use strbuf_addstr() for adding constant strings to a strbuf
Diffstat (limited to 'builtin/fmt-merge-msg.c')
| -rw-r--r-- | builtin/fmt-merge-msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fmt-merge-msg.c b/builtin/fmt-merge-msg.c index e5658c320e..ac84e99f3a 100644 --- a/builtin/fmt-merge-msg.c +++ b/builtin/fmt-merge-msg.c @@ -272,7 +272,7 @@ static int cmp_string_list_util_as_integral(const void *a_, const void *b_) static void add_people_count(struct strbuf *out, struct string_list *people) { if (people->nr == 1) - strbuf_addf(out, "%s", people->items[0].string); + strbuf_addstr(out, people->items[0].string); else if (people->nr == 2) strbuf_addf(out, "%s (%d) and %s (%d)", people->items[0].string, |
