OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc61ae8
)
builtin-apply: fix conversion error in strbuf series
author
Junio C Hamano
<gitster@pobox.com>
Thu, 4 Oct 2007 00:42:52 +0000
(17:42 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 4 Oct 2007 00:42:52 +0000
(17:42 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c
patch
|
blob
|
history
diff --git
a/builtin-apply.c
b/builtin-apply.c
index
047a60d
..
05c6bc3
100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-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)