Fixes for gosec

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-12-04 09:40:42 -03:00
parent 9553b277e9
commit d781d99797
12 changed files with 43 additions and 30 deletions

View file

@ -118,7 +118,7 @@ func downloadDatabase(dbName string) error {
defer outFile.Close()
if _, err := io.Copy(outFile, tarReader); err != nil {
if _, err := io.CopyN(outFile, tarReader, header.Size); err != nil {
return err
}