summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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