diff options
Diffstat (limited to 'trailer.c')
-rw-r--r-- | trailer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trailer.c b/trailer.c index eefe91d8650..9d101dbfbbe 100644 --- a/trailer.c +++ b/trailer.c @@ -842,7 +842,7 @@ static int find_trailer_end(struct strbuf **lines, int patch_start) for (i = 0; i < patch_start; i++) strbuf_addbuf(&sb, lines[i]); - ignore_bytes = ignore_non_trailer(&sb); + ignore_bytes = ignore_non_trailer(sb.buf, sb.len); strbuf_release(&sb); for (i = patch_start - 1; i >= 0 && ignore_bytes > 0; i--) ignore_bytes -= lines[i]->len; |