Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/fish Buffer overflow fix (from OpenBSD)
details: https://anonhg.NetBSD.org/src/rev/1ae8f33fe2fa
branches: trunk
changeset: 472197:1ae8f33fe2fa
user: kristerw <kristerw%NetBSD.org@localhost>
date: Sat Apr 24 22:09:06 1999 +0000
description:
Buffer overflow fix (from OpenBSD)
diffstat:
games/fish/fish.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 970e3dc79fef -r 1ae8f33fe2fa games/fish/fish.c
--- a/games/fish/fish.c Sat Apr 24 21:08:12 1999 +0000
+++ b/games/fish/fish.c Sat Apr 24 22:09:06 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fish.c,v 1.6 1998/09/13 15:27:27 hubertf Exp $ */
+/* $NetBSD: fish.c,v 1.7 1999/04/24 22:09:06 kristerw Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fish.c,v 1.6 1998/09/13 15:27:27 hubertf Exp $");
+__RCSID("$NetBSD: fish.c,v 1.7 1999/04/24 22:09:06 kristerw Exp $");
#endif
#endif /* not lint */
@@ -162,7 +162,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index