projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acad8e
)
data/file: Return EOF on reads past end
author
Matt Joiner <anacrolix@gmail.com>
Wed, 17 Feb 2016 06:58:20 +0000 (17:58 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Wed, 17 Feb 2016 06:58:20 +0000 (17:58 +1100)
data/file/file.go
patch
|
blob
|
history
diff --git
a/data/file/file.go
b/data/file/file.go
index 4725de74220a7bb139d44148a908e20689f2f6f2..f374c0f29835b564cc0e7e3b8153d132b89e5d2f 100644
(file)
--- a/
data/file/file.go
+++ b/
data/file/file.go
@@
-53,9
+53,10
@@
func (me data) ReadAt(p []byte, off int64) (n int, err error) {
off = 0
p = p[n1:]
if len(p) == 0 {
- break
+ return
}
}
+ err = io.EOF
return
}