X-Git-Url: https://ruderich.org/simon/gitweb/?p=nsscash%2Fnsscash.git;a=blobdiff_plain;f=passwd.go;h=90351900b334b4e9154683eeb437aedff54d0b06;hp=1b4939c63ac6a1a9b2c634bdd0a74a2def5f0419;hb=e7085e4751da534f2b0290df32ba06d09802a037;hpb=d7eb5ee1a910303f38904e604aea9cf0b1372d7b diff --git a/passwd.go b/passwd.go index 1b4939c..9035190 100644 --- a/passwd.go +++ b/passwd.go @@ -137,7 +137,7 @@ func SerializePasswd(p Passwd) []byte { l := res.Len() if l%8 != 0 { for i := 0; i < 8-l%8; i++ { - res.Write([]byte{'0'}) + res.WriteByte(0) } }