Browse Source

string winnerMessage länger initialisiert, um overflow zu vermeiden

remotes/origin/stefan
fdai7472 11 months ago
parent
commit
03cfef5d90
  1. 2
      src/main/c/Stefan/slot_machine.c

2
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 ");

Loading…
Cancel
Save