diff options
author | dima <dima@FreeBSD.org> | 1995-12-27 19:29:59 +0000 |
---|---|---|
committer | dima <dima@FreeBSD.org> | 1995-12-27 19:29:59 +0000 |
commit | f7fa37d296745f4060a23700205683aeabf327b1 (patch) | |
tree | 3bf659df074cdf08c591210dff6b9d190437aebd /games | |
parent | 6b2ff3fdc92df6ef62b6a3b5c0ece42a2ca0509d (diff) | |
download | FreeBSD-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.c | 2 |
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"); } |