diff --git a/games/fish/fish.c b/games/fish/fish.c index 452808a19ee5..653ab4be6cc4 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;