Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2-0]: src/games/sail Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/5a6e2695d36b
branches:  netbsd-2-0
changeset: 564962:5a6e2695d36b
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Apr 26 00:01:07 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 a543a16a2108 -r 5a6e2695d36b games/sail/pl_main.c
--- a/games/sail/pl_main.c      Sun Apr 02 17:51:45 2006 +0000
+++ b/games/sail/pl_main.c      Wed Apr 26 00:01:07 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.2.1 2006/04/26 00:01:07 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.2.1 2006/04/26 00:01:07 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