Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Strbuf API extensions and fixes.
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 26d7bb96bcaa52b4a104a2dfa17da388e3032c49..7290309ea9c01a6800aaa25d7a74d789adfd31c7 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-1548,8
+1548,8
@@
static int populate_from_stdin(struct diff_filespec *s)
{
struct strbuf buf;
- strbuf_init(&buf);
- if (strbuf_read(&buf, 0) < 0)
+ strbuf_init(&buf
, 0
);
+ if (strbuf_read(&buf, 0
, 0
) < 0)
return error("error while reading from stdin %s",
strerror(errno));