Skip to content

Commit e367cd1

Browse files
committed
keygen.c: replace gets with scanf
1 parent 151a35e commit e367cd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/keytools/keygen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ int main(int argc, char** argv)
301301
fclose(f);
302302
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!']: ");
303303
fflush(stdout);
304-
gets(reply);
304+
scanf("%s", reply);
305305
printf("Reply is [%s]\n", reply);
306306
if (strcmp(reply, "Yes, I am sure!") != 0) {
307307
printf("Operation aborted by user.");

0 commit comments

Comments
 (0)