mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
gets -> fgets
Submitted by: fn@@pain.csrv.uidaho.edu
This commit is contained in:
parent
014374187c
commit
9f234b3662
@ -198,7 +198,7 @@ reprint:
|
||||
else {
|
||||
(void) printf("Your name, Captain? ");
|
||||
(void) fflush(stdout);
|
||||
(void) gets(captain);
|
||||
(void) fgets(captain, sizeof captain, stdin);
|
||||
if (!*captain)
|
||||
(void) strcpy(captain, "no name");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user