Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mvme68k/stand/bootst use gets_s



details:   https://anonhg.NetBSD.org/src/rev/e351f147f514
branches:  trunk
changeset: 345727:e351f147f514
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 05 17:37:36 2016 +0000

description:
use gets_s

diffstat:

 sys/arch/mvme68k/stand/bootst/boot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 7c168e98110a -r e351f147f514 sys/arch/mvme68k/stand/bootst/boot.c
--- a/sys/arch/mvme68k/stand/bootst/boot.c      Sun Jun 05 17:33:49 2016 +0000
+++ b/sys/arch/mvme68k/stand/bootst/boot.c      Sun Jun 05 17:37:36 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.8 2008/01/12 09:54:30 tsutsui Exp $ */
+/*     $NetBSD: boot.c,v 1.9 2016/06/05 17:37:36 christos Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -62,7 +62,7 @@
 
        if (flag & RB_ASKNAME) {
                printf("tapeboot: segment? [%s] ", defname);
-               gets(line);
+               gets_s(line, sizeof(line));
                if (line[0])
                        file = line;
        }



Home | Main Index | Thread Index | Old Index