Module Name:    src
Committed By:   dholland
Date:           Sat Jun 11 06:39:25 UTC 2016

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/rs6000/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/rs6000/stand/boot/monitor.c
diff -u src/sys/arch/rs6000/stand/boot/monitor.c:1.3 src/sys/arch/rs6000/stand/boot/monitor.c:1.4
--- src/sys/arch/rs6000/stand/boot/monitor.c:1.3	Wed Feb  3 13:48:17 2010
+++ src/sys/arch/rs6000/stand/boot/monitor.c	Sat Jun 11 06:39:25 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: monitor.c,v 1.3 2010/02/03 13:48:17 wiz Exp $	*/
+/*	$NetBSD: monitor.c,v 1.4 2016/06/11 06:39:25 dholland Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@ db_monitor(void)
 
 	while(1) {
 		printf("db> ");
-		gets(line);
+		kgets(line, sizeof(line));
 
 		flag = 0;
 		for(p = line, argc = 0; *p != '\0'; p++) {

Reply via email to