use strbuf_addstr() instead of strbuf_addf() with "%s", part 2
[gitweb.git] / merge-recursive.c
index e34912683ca106524616673f96fff538af8447ed..d2b191b8c6832e2bfd27516ff549d47102510dff 100644 (file)
@@ -206,7 +206,7 @@ static void output_commit_title(struct merge_options *o, struct commit *commit)
                        find_unique_abbrev(commit->object.oid.hash,
                                DEFAULT_ABBREV));
                if (parse_commit(commit) != 0)
-                       strbuf_addf(&o->obuf, _("(bad commit)\n"));
+                       strbuf_addstr(&o->obuf, _("(bad commit)\n"));
                else {
                        const char *title;
                        const char *msg = get_commit_buffer(commit, NULL);