CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/05/09 17:39:10
Modified files: games/cribbage : io.c Log message: Fix a mini-bug reported by pjanzen@: When entering card names, you can use multiple words (like KING OF SPADES). If you entered more than one consecutive blank character between words, the function incard() took that as end-of-string and ignored the rest. Fix this by dropping duplicate blanks up front, in get_line(). Patch simplified by me, ok pjanzen@. While here, use beep(3) in an adjacent line instead of manually fiddling with control characters, suggested by pjanzen@.