diff options
Diffstat (limited to 'src/pkg/patch/git.go')
-rw-r--r-- | src/pkg/patch/git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/patch/git.go b/src/pkg/patch/git.go index 3c70d8ced..651609726 100644 --- a/src/pkg/patch/git.go +++ b/src/pkg/patch/git.go @@ -103,7 +103,7 @@ func ParseGitBinary(raw []byte) (Diff, os.Error) { return nil, err } var buf [1]byte - m, err := z.Read(&buf) + m, err := z.Read(buf[0:]) if m != 0 || err != os.EOF { return nil, os.NewError("Git binary literal longer than expected") } |