Merge branch 'rs/export-strbuf-addchars'
[gitweb.git] / merge-recursive.c
index 8ab944c44cf1afd516505fe9bb80dbc06708d1af..22315c370aaef56222ba96e6aef7fe33bb17cd9e 100644 (file)
@@ -163,9 +163,7 @@ static void output(struct merge_options *o, int v, const char *fmt, ...)
        if (!show(o, v))
                return;
 
-       strbuf_grow(&o->obuf, o->call_depth * 2 + 2);
-       memset(o->obuf.buf + o->obuf.len, ' ', o->call_depth * 2);
-       strbuf_setlen(&o->obuf, o->obuf.len + o->call_depth * 2);
+       strbuf_addchars(&o->obuf, ' ', o->call_depth * 2);
 
        va_start(ap, fmt);
        strbuf_vaddf(&o->obuf, fmt, ap);