]> Sergey Matveev's repositories - btrtrc.git/commitdiff
dirwatch: fix panic when attemting to copy func into [20]byte
authorctn <costinc@gmail.com>
Tue, 26 Jul 2016 19:34:09 +0000 (22:34 +0300)
committerctn <costinc@gmail.com>
Tue, 26 Jul 2016 19:34:09 +0000 (22:34 +0300)
util/dirwatch/dirwatch.go

index 4c5c32cd5610701b8b5220398029967fc7465a3e..1d5fe65a20b7efb0a5e0bae01d4935ea426551f0 100644 (file)
@@ -69,7 +69,7 @@ func torrentFileInfoHash(fileName string) (ih metainfo.Hash, ok bool) {
        if mi == nil {
                return
        }
-       missinggo.CopyExact(ih[:], mi.Info.Hash)
+       ih = mi.Info.Hash()
        ok = true
        return
 }