diff --git a/src/main/c/Stefan/slot_machine.c b/src/main/c/Stefan/slot_machine.c index f659eab..c3dbd65 100644 --- a/src/main/c/Stefan/slot_machine.c +++ b/src/main/c/Stefan/slot_machine.c @@ -129,7 +129,7 @@ int getWinnings(char symbols[], int bet){ void showResult(char symbols[], int winnings){ - char winnerMessage[] = {""}; + char winnerMessage[10] = {""}; if(winnings > 0){ strcpy(winnerMessage, " WINNER ");