use strbuf_addch for adding single characters
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e992d1eb39
commit
294b2680cd
@ -171,7 +171,7 @@ static void output(struct merge_options *o, int v, const char *fmt, ...)
|
||||
strbuf_vaddf(&o->obuf, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
strbuf_add(&o->obuf, "\n", 1);
|
||||
strbuf_addch(&o->obuf, '\n');
|
||||
if (!o->buffer_output)
|
||||
flush_output(o);
|
||||
}
|
||||
|
@ -338,7 +338,7 @@ static void NORETURN unsupported_magic(const char *pattern,
|
||||
if (!(magic & m->bit))
|
||||
continue;
|
||||
if (sb.len)
|
||||
strbuf_addstr(&sb, " ");
|
||||
strbuf_addch(&sb, ' ');
|
||||
if (short_magic & m->bit)
|
||||
strbuf_addf(&sb, "'%c'", m->mnemonic);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user