dirwatch: fix panic when attemting to copy func into [20]byte

This commit is contained in:
ctn 2016-07-26 22:34:09 +03:00
parent debcb10b08
commit 6525cf19f6
1 changed files with 1 additions and 1 deletions

View File

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