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, "?"); }