Module Name: src
Committed By: dholland
Date: Sat Jun 11 06:35:38 UTC 2016
Modified Files:
src/sys/arch/ofppc/stand/ofwboot: boot.c
Log Message:
PR 51200 gets in libsa considered harmful: use kgets
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/ofppc/stand/ofwboot/boot.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/ofppc/stand/ofwboot/boot.c
diff -u src/sys/arch/ofppc/stand/ofwboot/boot.c:1.23 src/sys/arch/ofppc/stand/ofwboot/boot.c:1.24
--- src/sys/arch/ofppc/stand/ofwboot/boot.c:1.23 Sat Jan 22 19:19:21 2011
+++ src/sys/arch/ofppc/stand/ofwboot/boot.c Sat Jun 11 06:35:38 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.23 2011/01/22 19:19:21 joerg Exp $ */
+/* $NetBSD: boot.c,v 1.24 2016/06/11 06:35:38 dholland Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -230,7 +230,7 @@ main(void)
if (boothowto & RB_ASKNAME) {
printf("Boot: ");
- gets(bootline);
+ kgets(bootline, sizeof(bootline));
parseargs(bootline, &boothowto);
}