Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/games/sail Pull up following revision(s) (requested by dr...
details: https://anonhg.NetBSD.org/src/rev/c84e9218045e
branches: netbsd-2
changeset: 564468:c84e9218045e
user: snj <snj%NetBSD.org@localhost>
date: Tue Apr 25 23:58:19 2006 +0000
description:
Pull up following revision(s) (requested by drochner in ticket #10504):
games/sail/pl_main.c: revision 1.17
fix buffer overflow (CVE-2006-1744), from Debian
diffstat:
games/sail/pl_main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 16404f50065c -r c84e9218045e games/sail/pl_main.c
--- a/games/sail/pl_main.c Fri Apr 21 21:54:11 2006 +0000
+++ b/games/sail/pl_main.c Tue Apr 25 23:58:19 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pl_main.c,v 1.16 2003/08/07 09:37:44 agc Exp $ */
+/* $NetBSD: pl_main.c,v 1.16.4.1 2006/04/25 23:58:19 snj Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pl_main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_main.c,v 1.16 2003/08/07 09:37:44 agc Exp $");
+__RCSID("$NetBSD: pl_main.c,v 1.16.4.1 2006/04/25 23:58:19 snj Exp $");
#endif
#endif /* not lint */
@@ -219,7 +219,7 @@
printf("\nInitial broadside %s (grape, chain, round, double): ",
n ? "right" : "left");
fflush(stdout);
- scanf("%s", buf);
+ fgets(buf, sizeof(buf), stdin);
switch (*buf) {
case 'g':
load = L_GRAPE;
Home |
Main Index |
Thread Index |
Old Index