summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordima <dima@FreeBSD.org>1995-12-27 19:29:59 +0000
committerdima <dima@FreeBSD.org>1995-12-27 19:29:59 +0000
commitf7fa37d296745f4060a23700205683aeabf327b1 (patch)
tree3bf659df074cdf08c591210dff6b9d190437aebd /games
parent6b2ff3fdc92df6ef62b6a3b5c0ece42a2ca0509d (diff)
downloadFreeBSD-src-f7fa37d296745f4060a23700205683aeabf327b1.zip
FreeBSD-src-f7fa37d296745f4060a23700205683aeabf327b1.tar.gz
gets -> fgets
Submitted by: fn@@pain.csrv.uidaho.edu
Diffstat (limited to 'games')
-rw-r--r--games/sail/pl_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/sail/pl_main.c b/games/sail/pl_main.c
index 7b1f457..e921321 100644
--- a/games/sail/pl_main.c
+++ b/games/sail/pl_main.c
@@ -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");
}
OpenPOWER on IntegriCloud