diff options
Diffstat (limited to 'src/cmd/cgo/util.go')
-rw-r--r-- | src/cmd/cgo/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/cgo/util.go b/src/cmd/cgo/util.go index 9e9d9aef1..53b3ef6a3 100644 --- a/src/cmd/cgo/util.go +++ b/src/cmd/cgo/util.go @@ -19,7 +19,7 @@ func (r ByteReaderAt) ReadAt(p []byte, off int64) (n int, err os.Error) { if off >= int64(len(r)) || off < 0 { return 0, os.EOF } - return copy(p, r[off:len(r)]), nil; + return copy(p, r[off:]), nil; } // run runs the command argv, feeding in stdin on standard input. |