lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 8d033c97aedd9d2bb3ff0f1d0d4d33d2f835c5ca
parent ef77e503a69206439d7fa9b0bfe289417236af3d
Author: Sean Enck <sean@ttypty.com>
Date:   Wed, 19 Jan 2022 18:01:14 -0500

wrong length

Diffstat:
Mcmd/lb-totp/main.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/lb-totp/main.go b/cmd/lb-totp/main.go @@ -118,7 +118,7 @@ func display(token string, clip, once, short bool) error { endColor = redEnd } leftString := fmt.Sprintf("%d", left) - if len(leftString) < 1 { + if len(leftString) < 2 { leftString = "0" + leftString } expires := fmt.Sprintf("%s%s (%s)%s", startColor, now.Format("15:04:05"), leftString, endColor)