torrent.go | 2 +- diff --git a/torrent.go b/torrent.go index 0777373985f49cc726da3f86ccdb0f6cfa0863c0..9aebad9030b9d51c6ead022182adb4f591053536 100644 --- a/torrent.go +++ b/torrent.go @@ -324,7 +324,7 @@ } func (t *Torrent) makePieces() { hashes := infoPieceHashes(t.info) - t.pieces = make([]Piece, len(hashes)) + t.pieces = make([]Piece, len(hashes), len(hashes)) for i, hash := range hashes { piece := &t.pieces[i] piece.t = t