summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-07-10 10:52:21 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-10 14:06:45 -0700
commite992d1eb39033206dd44143ff28214b837c3d89f (patch)
tree649d3e17694ea502150059fe044be36a59ecb71d /pretty.c
parentSixth batch for 2.1 (diff)
downloadtgif-e992d1eb39033206dd44143ff28214b837c3d89f.tar.xz
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 'pretty.c')
-rw-r--r--pretty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty.c b/pretty.c
index 8d201f6bda..6e54934723 100644
--- a/pretty.c
+++ b/pretty.c
@@ -1376,7 +1376,7 @@ static size_t format_and_pad_commit(struct strbuf *sb, /* in UTF-8 */
case trunc_none:
break;
}
- strbuf_addstr(sb, local_sb.buf);
+ strbuf_addbuf(sb, &local_sb);
} else {
int sb_len = sb->len, offset = 0;
if (c->flush_type == flush_left)