Module Name:    src
Committed By:   dholland
Date:           Sat Jun 11 06:31:49 UTC 2016

Modified Files:
        src/sys/arch/landisk/stand/boot: boot2.c monitor.c

Log Message:
PR 51200 gets in libsa considered harmful: use kgets


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/landisk/stand/boot/boot2.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/landisk/stand/boot/monitor.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/landisk/stand/boot/boot2.c
diff -u src/sys/arch/landisk/stand/boot/boot2.c:1.5 src/sys/arch/landisk/stand/boot/boot2.c:1.6
--- src/sys/arch/landisk/stand/boot/boot2.c:1.5	Tue May 31 04:05:50 2016
+++ src/sys/arch/landisk/stand/boot/boot2.c	Sat Jun 11 06:31:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot2.c,v 1.5 2016/05/31 04:05:50 dholland Exp $	*/
+/*	$NetBSD: boot2.c,v 1.6 2016/06/11 06:31:49 dholland Exp $	*/
 
 /*
  * Copyright (c) 2003
@@ -410,7 +410,7 @@ bootmenu(void)
 
 		input[0] = '\0';
 		printf("> ");
-		gets(input);
+		kgets(input, sizeof(input));
 
 		/*
 		 * Skip leading whitespace.

Index: src/sys/arch/landisk/stand/boot/monitor.c
diff -u src/sys/arch/landisk/stand/boot/monitor.c:1.3 src/sys/arch/landisk/stand/boot/monitor.c:1.4
--- src/sys/arch/landisk/stand/boot/monitor.c:1.3	Sat Mar 14 15:36:08 2009
+++ src/sys/arch/landisk/stand/boot/monitor.c	Sat Jun 11 06:31:49 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: monitor.c,v 1.3 2009/03/14 15:36:08 dsl Exp $	*/
+/*	$NetBSD: monitor.c,v 1.4 2016/06/11 06:31:49 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@ db_monitor(void)
 
 	for (;;) {
 		printf("db> ");
-		gets(line);
+		kgets(line, sizeof(line));
 
 		flag = 0;
 		argc = 0;

Reply via email to