Mercurial > go > multipass
changeset 5:882f913f4e89
Replace '\0' with correct 0 value.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Sat, 24 Oct 2015 23:19:20 -0400 |
parents | b8545eea86b4 |
children | 10613f0f4737 |
files | multipass-checkpassword.go |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/multipass-checkpassword.go Sat Oct 24 23:16:42 2015 -0400 +++ b/multipass-checkpassword.go Sat Oct 24 23:19:20 2015 -0400 @@ -17,12 +17,12 @@ func main() { infile := os.NewFile(3, "") reader := bufio.NewReader(os.Stdin) - username, err := reader.ReadString('\0') + username, err := reader.ReadString(0) if err != nil { os.Exit(InternalError) } username = username[:len(username)-1] - pass, err := reader.ReadString('\0') + pass, err := reader.ReadString(0) if err != nil { os.Exit(InternalError) }