keygen.c: replace gets with scanf

pull/58/head
Daniele Lacamera 2020-06-11 17:14:27 +02:00
parent 151a35e3b0
commit e367cd17e0
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ int main(int argc, char** argv)
fclose(f);
printf("** Warning: key file already exist! Are you sure you want to generate a new key and overwrite the existing key? [Type 'Yes, I am sure!']: ");
fflush(stdout);
gets(reply);
scanf("%s", reply);
printf("Reply is [%s]\n", reply);
if (strcmp(reply, "Yes, I am sure!") != 0) {
printf("Operation aborted by user.");