This commit is contained in:
Frank Denis 2015-12-17 09:47:30 +01:00
parent 194ad15904
commit 29caedbee6

View File

@ -57,7 +57,7 @@ prompt_input(const char *prompt, char *input, const size_t max_input_len,
}
fflush(stdout);
if (fgets(input_tmp, sizeof input_tmp, stdin) == NULL) {
input_tmp[0] = '\0';
input_tmp[0] = '\0';
}
actual_input_len = strlen(input_tmp);