diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index 1182223..2c6f2ce 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -257,4 +257,6 @@ void add_guessed_letter(char* guessed_letters, char guessed_letter){ return; } } + guessed_letters[strlen(guessed_letters)] = guessed_letter; + guessed_letters[strlen(guessed_letters) + 1] = '\0'; } \ No newline at end of file