Module Name:    src
Committed By:   dholland
Date:           Sat Jun 11 06:50:21 UTC 2016

Modified Files:
        src/sys/arch/x68k/stand/boot: boot.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/x68k/stand/boot/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/x68k/stand/boot/boot.c
diff -u src/sys/arch/x68k/stand/boot/boot.c:1.22 src/sys/arch/x68k/stand/boot/boot.c:1.23
--- src/sys/arch/x68k/stand/boot/boot.c:1.22	Tue Aug  5 13:49:04 2014
+++ src/sys/arch/x68k/stand/boot/boot.c	Sat Jun 11 06:50:21 2016
@@ -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 @@ bootmenu(void)
 		char *p, *options;
 
 		printf("> ");
-		gets(input);
+		kgets(input, sizeof(input));
 
 		for (p = &input[0]; p - &input[0] < 80 && *p == ' '; p++)
 			;

Reply via email to