Commit a8d84251 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix for weekly 10-06.

parent f031c99e
...@@ -34,7 +34,7 @@ func (me *ZipFile) Data() []byte { ...@@ -34,7 +34,7 @@ func (me *ZipFile) Data() []byte {
} }
dest := bytes.NewBuffer(make([]byte, 0, me.UncompressedSize)) dest := bytes.NewBuffer(make([]byte, 0, me.UncompressedSize))
_, err = io.Copyn(dest, rc, int64(me.UncompressedSize)) _, err = io.CopyN(dest, rc, int64(me.UncompressedSize))
if err != nil { if err != nil {
panic(err) panic(err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment