# HG changeset patch # User Paul Fisher # Date 1445743160 14400 # Node ID 882f913f4e89e208dd6860bdf3db810ff125f5ec # Parent b8545eea86b496a7e24e8f982cf35b5153016e57 Replace '\0' with correct 0 value. diff -r b8545eea86b4 -r 882f913f4e89 multipass-checkpassword.go --- 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) }