Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/stand/boot PR 51200 gets in libsa considered h...
details: https://anonhg.NetBSD.org/src/rev/edf6f9d2936c
branches: trunk
changeset: 345856:edf6f9d2936c
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Jun 11 06:50:21 2016 +0000
description:
PR 51200 gets in libsa considered harmful: use kgets
diffstat:
sys/arch/x68k/stand/boot/boot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 31c41fcfd515 -r edf6f9d2936c sys/arch/x68k/stand/boot/boot.c
--- a/sys/arch/x68k/stand/boot/boot.c Sat Jun 11 06:49:46 2016 +0000
+++ b/sys/arch/x68k/stand/boot/boot.c Sat Jun 11 06:50:21 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.22 2014/08/05 13:49:04 isaki Exp $ */
+/* $NetBSD: boot.c,v 1.23 2016/06/11 06:50:21 dholland Exp $ */
/*
* Copyright (c) 2001 Minoura Makoto
@@ -307,7 +307,7 @@
char *p, *options;
printf("> ");
- gets(input);
+ kgets(input, sizeof(input));
for (p = &input[0]; p - &input[0] < 80 && *p == ' '; p++)
;
Home |
Main Index |
Thread Index |
Old Index