summaryrefslogtreecommitdiff
path: root/libgo/go/archive/tar/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/archive/tar/reader.go')
-rw-r--r--libgo/go/archive/tar/reader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/archive/tar/reader.go b/libgo/go/archive/tar/reader.go
index 45d95c3df29..12de2ada083 100644
--- a/libgo/go/archive/tar/reader.go
+++ b/libgo/go/archive/tar/reader.go
@@ -94,7 +94,7 @@ func (tr *Reader) skipUnread() {
return
}
}
- _, tr.err = io.Copyn(ioutil.Discard, tr.r, nr)
+ _, tr.err = io.CopyN(ioutil.Discard, tr.r, nr)
}
func (tr *Reader) verifyChecksum(header []byte) bool {