diff options
Diffstat (limited to 'src/pkg/os/os_test.go')
-rw-r--r-- | src/pkg/os/os_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index b2332f0c8..6827c3f60 100644 --- a/src/pkg/os/os_test.go +++ b/src/pkg/os/os_test.go @@ -42,7 +42,7 @@ func size(name string, t *testing.T) int64 { var buf [100]byte len := 0 for { - n, e := file.Read(&buf) + n, e := file.Read(buf[0:]) len += n if e == EOF { break |