summaryrefslogtreecommitdiffstats
path: root/games/fish
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-07-09 06:09:56 +0000
committerphk <phk@FreeBSD.org>1998-07-09 06:09:56 +0000
commitdc65231abc82cafe7dead2c56c75b225b6e5fe67 (patch)
treecdcb04dce4b71be57740a29ff18f45e59c74d0f1 /games/fish
parent158adf1eee9025f36c837ce7dccdda127fe80d59 (diff)
downloadFreeBSD-src-dc65231abc82cafe7dead2c56c75b225b6e5fe67.zip
FreeBSD-src-dc65231abc82cafe7dead2c56c75b225b6e5fe67.tar.gz
Buffer overflow.
PR: 7195 Reviewed by: phk Submitted by: Anders Thulin <Anders.x.thulin@telia.se>
Diffstat (limited to 'games/fish')
-rw-r--r--games/fish/fish.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c
index 452808a..653ab4b 100644
--- a/games/fish/fish.c
+++ b/games/fish/fish.c
@@ -133,7 +133,7 @@ usermove()
for (;;) {
(void)printf("You ask me for: ");
(void)fflush(stdout);
- if (fgets(buf, BUFSIZ, stdin) == NULL)
+ if (fgets(buf, sizeof(buf), stdin) == NULL)
exit(0);
if (buf[0] == '\0')
continue;
OpenPOWER on IntegriCloud