mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
builtin-apply: fix conversion error in strbuf series
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
cc61ae82ec
commit
f94bf44041
|
@ -2651,7 +2651,7 @@ static int apply_patch(int fd, const char *filename, int inaccurate_eof)
|
|||
|
||||
patch = xcalloc(1, sizeof(*patch));
|
||||
patch->inaccurate_eof = inaccurate_eof;
|
||||
nr = parse_chunk(buf.buf + offset, buf.len, patch);
|
||||
nr = parse_chunk(buf.buf + offset, buf.len - offset, patch);
|
||||
if (nr < 0)
|
||||
break;
|
||||
if (apply_in_reverse)
|
||||
|
|
Loading…
Reference in a new issue