summaryrefslogtreecommitdiff
path: root/merge-recursive.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 08:54:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-10 21:06:46 (GMT)
commit294b2680cd89234618e329e090b68dc69cc41a37 (patch)
tree56c2477f0369e9476d71d41068bfa3d8dab3cf9e /merge-recursive.c
parente992d1eb39033206dd44143ff28214b837c3d89f (diff)
downloadgit-294b2680cd89234618e329e090b68dc69cc41a37.zip
git-294b2680cd89234618e329e090b68dc69cc41a37.tar.gz
git-294b2680cd89234618e329e090b68dc69cc41a37.tar.bz2
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>
Diffstat (limited to 'merge-recursive.c')
-rw-r--r--merge-recursive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/merge-recursive.c b/merge-recursive.c
index b5c3c53..fad7b2c 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -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);
}