Skip to content

Commit

Permalink
stricter verification
Browse files Browse the repository at this point in the history
  • Loading branch information
bolknote committed Nov 3, 2023
1 parent 7b31f72 commit 9cf0349
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helpers/hangman.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ HangmanLangConfig* hangman_load_config(char* meta_file) {

config->letters[config->letters_cnt++] = num;
if(config->unicode_base > num) config->unicode_base = num;
token = end + 1; // +1 because of space

if(*end == ' ') {
token = end + 1; // +1 because of space
} else {
break;
}
}

config->keyboard_rows = ceil((float)config->letters_cnt / config->keyboard_cols);
Expand Down

0 comments on commit 9cf0349

Please sign in to comment.