Skip to content
Snippets Groups Projects
Commit 2697a665 authored by tanguy.cavagna's avatar tanguy.cavagna :desktop:
Browse files

Typo

parent aaac1e94
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ int *validate_guess(char answer[WORD_LENGHT], char try[WORD_LENGHT]) {
char *addr;
if ((addr = strchr(answer, try[i])) != NULL) {
validation[i] = LETTER_WRONG_PLACE;
cpy[(int)(addr - answer)] = ' '; // Get the index of the found char
cpy[(int)(addr - answer)] = ' '; // Get the index of the found char and replace with space
continue;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment