softfail on paddedstring and login cleanup

This commit is contained in:
wish
2022-08-04 21:01:32 +10:00
parent e40ac7539c
commit 556198af72
3 changed files with 5 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ func PaddedString(x string, size uint, t bool) []byte {
e := japanese.ShiftJIS.NewEncoder()
xt, _, err := transform.String(e, x)
if err != nil {
panic(err)
return make([]byte, 0)
}
x = xt
}