Module Name: src Committed By: dholland Date: Sat Jun 11 06:28:49 UTC 2016
Modified Files: src/sys/arch/bebox/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.10 -r1.11 src/sys/arch/bebox/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/bebox/stand/boot/monitor.c diff -u src/sys/arch/bebox/stand/boot/monitor.c:1.10 src/sys/arch/bebox/stand/boot/monitor.c:1.11 --- src/sys/arch/bebox/stand/boot/monitor.c:1.10 Sun Jun 1 17:21:50 2014 +++ src/sys/arch/bebox/stand/boot/monitor.c Sat Jun 11 06:28:49 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: monitor.c,v 1.10 2014/06/01 17:21:50 phx Exp $ */ +/* $NetBSD: monitor.c,v 1.11 2016/06/11 06:28:49 dholland Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -69,7 +69,7 @@ db_monitor(void) while (1) { printf("db> "); - gets(line); + kgets(line, sizeof(line)); flag = 0; for (p = line, argc = 0; *p != '\0'; p++) {