From 042b45f36a0bef75ec74313a977340b0203f457b Mon Sep 17 00:00:00 2001 From: Murilo Soares Pereira Date: Sat, 3 Apr 2010 15:24:10 -0300 Subject: [PATCH] Forgot switch's breaks. --- lib/display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/display.c b/lib/display.c index 982fb0d..f12308f 100644 --- a/lib/display.c +++ b/lib/display.c @@ -10,10 +10,10 @@ char *card_suit(enum suit suit) { card_suit = malloc(5 * sizeof(card_suit)); switch(suit) { - case DIAMONDS: strcpy(card_suit, DIAMONDS_SYMBOL); - case SPADES: strcpy(card_suit, SPADES_SYMBOL); - case HEARTS: strcpy(card_suit, HEARTS_SYMBOL); - case CLUBS: strcpy(card_suit, CLUBS_SYMBOL); + case DIAMONDS: strcpy(card_suit, DIAMONDS_SYMBOL); break; + case SPADES: strcpy(card_suit, SPADES_SYMBOL); break; + case HEARTS: strcpy(card_suit, HEARTS_SYMBOL); break; + case CLUBS: strcpy(card_suit, CLUBS_SYMBOL); break; default: strcpy(card_suit, "?"); }