]> Sergey Matveev's repositories - btrtrc.git/commitdiff
metainfo: Fix use of CastSlice when copying nodes
authorMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 11:47:41 +0000 (22:47 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 11:47:41 +0000 (22:47 +1100)
metainfo/builder.go

index 5fcaaa82f902046b7526ac64e09a681b1a765e39..af95bf0727712a8e0a9844af4ba38a5579634c70 100644 (file)
@@ -383,7 +383,7 @@ func (b *Batch) write_torrent(w io.Writer) error {
                }
        }
 
-       missinggo.CastSlice(td.Nodes, b.node_list)
+       missinggo.CastSlice(&td.Nodes, b.node_list)
        td.CreationDate = b.creation_date.Unix()
        td.Comment = b.comment
        td.CreatedBy = b.created_by