Module Name: src Committed By: dholland Date: Sat Jun 11 06:38:50 UTC 2016
Modified Files: src/sys/arch/prep/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.8 -r1.9 src/sys/arch/prep/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/prep/stand/boot/monitor.c diff -u src/sys/arch/prep/stand/boot/monitor.c:1.8 src/sys/arch/prep/stand/boot/monitor.c:1.9 --- src/sys/arch/prep/stand/boot/monitor.c:1.8 Wed Feb 3 13:47:57 2010 +++ src/sys/arch/prep/stand/boot/monitor.c Sat Jun 11 06:38:50 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: monitor.c,v 1.8 2010/02/03 13:47:57 wiz Exp $ */ +/* $NetBSD: monitor.c,v 1.9 2016/06/11 06:38:50 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++) {