After entering an invalid three-letter card name, one letter card names
authorschwarze <schwarze@openbsd.org>
Fri, 9 May 2014 02:47:25 +0000 (02:47 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 9 May 2014 02:47:25 +0000 (02:47 +0000)
commitf84850bae1a386b9d68713b88593232d04e13269
tree44427255930172d1c2c982071270e95085600771
parent4ba9194b644726696091f5a05429dadc98cddff2
After entering an invalid three-letter card name, one letter card names
stopped working because the third letter remained in the buffer,
incard() skipped the NUL and used the old garbage.
Fix this bug reported by pjanzen@, but in a simpler way than he
suggested, by just clearing any trailing garbage from the buffer.
ok pjanzen@
games/cribbage/io.c