From 9f234b3662fb1403868ee66cd850a0bb86d2c8d9 Mon Sep 17 00:00:00 2001 From: Dima Ruban Date: Wed, 27 Dec 1995 19:29:59 +0000 Subject: [PATCH] gets -> fgets Submitted by: fn@@pain.csrv.uidaho.edu --- games/sail/pl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/sail/pl_main.c b/games/sail/pl_main.c index 7b1f457662c7..e9213210d38c 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"); }