pty: fix read_password prototype