hardfiles- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
commit bd9f68282c91fa7396a3ab666b48324bb18a9c07
parent 2f2090929c1cb070979e08b0284a433a99b72dcd Author: acidvegas <acid.vegas@acid.vegas> Date: Wed, 27 Dec 2023 15:21:33 -0500 Zeros function improved (do we need this?) Diffstat:
|
1 file changed, 1 insertion(+), 5 deletions(-) |
diff --git a/main.go b/main.go @@ -86,12 +86,8 @@ func Zeros(path string, size int64) error { } defer file.Close() - offset, err := file.Seek(0, 0) - if err != nil { - return err - } buff := make([]byte, size) - file.WriteAt(buff, offset) + file.WriteAt(buff, 0) return nil } |