# HG changeset patch # User Paul Fisher # Date 1445743002 14400 # Node ID b8545eea86b496a7e24e8f982cf35b5153016e57 # Parent ec4ded022025e90c1ce394dea9b7a4820f26ec9c Use proper separator on multipass reads. diff -r ec4ded022025 -r b8545eea86b4 multipass-checkpassword.go --- a/multipass-checkpassword.go Sat Oct 24 22:36:33 2015 -0400 +++ b/multipass-checkpassword.go Sat Oct 24 23:16:42 2015 -0400 @@ -17,12 +17,12 @@ func main() { infile := os.NewFile(3, "") reader := bufio.NewReader(os.Stdin) - username, err := reader.ReadString('\n') + username, err := reader.ReadString('\0') if err != nil { os.Exit(InternalError) } username = username[:len(username)-1] - pass, err := reader.ReadString('\n') + pass, err := reader.ReadString('\0') if err != nil { os.Exit(InternalError) }