From 6525cf19f695f058690886907e76c557d3c611d3 Mon Sep 17 00:00:00 2001 From: ctn Date: Tue, 26 Jul 2016 22:34:09 +0300 Subject: [PATCH] dirwatch: fix panic when attemting to copy func into [20]byte --- util/dirwatch/dirwatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dirwatch/dirwatch.go b/util/dirwatch/dirwatch.go index 4c5c32cd..1d5fe65a 100644 --- a/util/dirwatch/dirwatch.go +++ b/util/dirwatch/dirwatch.go @@ -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 }