Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3-0]: src/games/sail Pull up following revision(s) (requested by ...
details: https://anonhg.NetBSD.org/src/rev/8bc1c4f93486
branches: netbsd-3-0
changeset: 579208:8bc1c4f93486
user: snj <snj%NetBSD.org@localhost>
date: Tue Apr 25 23:51:22 2006 +0000
description:
Pull up following revision(s) (requested by drochner in ticket #1289):
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 ebb096c3fcab -r 8bc1c4f93486 games/sail/pl_main.c
--- a/games/sail/pl_main.c Fri Apr 21 12:30:36 2006 +0000
+++ b/games/sail/pl_main.c Tue Apr 25 23:51:22 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.10.1 2006/04/25 23:51:22 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.10.1 2006/04/25 23:51:22 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