summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 08:52:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-10 21:06:45 (GMT)
commite992d1eb39033206dd44143ff28214b837c3d89f (patch)
tree649d3e17694ea502150059fe044be36a59ecb71d /builtin/log.c
parent81e776d92bb19a4fab12dcc537adfd543468d7d0 (diff)
downloadgit-e992d1eb39033206dd44143ff28214b837c3d89f.zip
git-e992d1eb39033206dd44143ff28214b837c3d89f.tar.gz
git-e992d1eb39033206dd44143ff28214b837c3d89f.tar.bz2
use strbuf_addbuf for adding strbufs
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
-rw-r--r--builtin/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 27c1b65..4389722 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -861,7 +861,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
read_branch_desc(&desc, branch_name);
if (desc.len) {
strbuf_addch(buf, '\n');
- strbuf_add(buf, desc.buf, desc.len);
+ strbuf_addbuf(buf, &desc);
strbuf_addch(buf, '\n');
}
}