aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorDima Ruban <dima@FreeBSD.org>1995-12-27 19:29:59 +0000
committerDima Ruban <dima@FreeBSD.org>1995-12-27 19:29:59 +0000
commit9f234b3662fb1403868ee66cd850a0bb86d2c8d9 (patch)
tree3bf659df074cdf08c591210dff6b9d190437aebd /games
parent014374187c3f4674c8ba7ea3e1f02728f0ecb3a6 (diff)
Notes
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 7b1f457662c7a..e9213210d38ce 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");
}