changeset 2:a4fa4f28b472

Actually shave off last character of password description.
author Paul Fisher <paul@pfish.zone>
date Sat, 24 Oct 2015 22:34:07 -0400
parents faf4aad86fc9
children ec4ded022025
files multipass-add.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/multipass-add.go	Sat Oct 24 21:48:38 2015 -0400
+++ b/multipass-add.go	Sat Oct 24 22:34:07 2015 -0400
@@ -20,7 +20,7 @@
 		fmt.Println(err.Error())
 		return
 	}
-	text = text[:-1]
+	text = text[:len(text)-1]
 	entry, password, err := auth.NewEntry(text)
 	if err != nil {
 		fmt.Println(err.Error())