Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
archive: fix subst file generation
[gitweb.git]
/
builtin-apply.c
diff --git
a/builtin-apply.c
b/builtin-apply.c
index 90e328ef917cfa591e6621966b5b3bc2ead24075..988e85f1e5d730bdc3b237580fa92e2d9fe3e520 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-184,8
+184,8
@@
static void *read_patch_file(int fd, unsigned long *sizep)
{
struct strbuf buf;
- strbuf_init(&buf);
- if (strbuf_read(&buf, fd) < 0)
+ strbuf_init(&buf
, 0
);
+ if (strbuf_read(&buf, fd
, 0
) < 0)
die("git-apply: read returned %s", strerror(errno));
*sizep = buf.len;