Module Name: src
Committed By: christos
Date: Sun Jun 5 17:37:36 UTC 2016
Modified Files:
src/sys/arch/mvme68k/stand/bootst: boot.c
Log Message:
use gets_s
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mvme68k/stand/bootst/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mvme68k/stand/bootst/boot.c
diff -u src/sys/arch/mvme68k/stand/bootst/boot.c:1.8 src/sys/arch/mvme68k/stand/bootst/boot.c:1.9
--- src/sys/arch/mvme68k/stand/bootst/boot.c:1.8 Sat Jan 12 04:54:30 2008
+++ src/sys/arch/mvme68k/stand/bootst/boot.c Sun Jun 5 13:37:36 2016
@@ -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 @@ main(void)
if (flag & RB_ASKNAME) {
printf("tapeboot: segment? [%s] ", defname);
- gets(line);
+ gets_s(line, sizeof(line));
if (line[0])
file = line;
}