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

Modified Files:
        src/sys/arch/acorn32/stand/boot32: boot32.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/acorn32/stand/boot32/boot32.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/acorn32/stand/boot32/boot32.c
diff -u src/sys/arch/acorn32/stand/boot32/boot32.c:1.41 src/sys/arch/acorn32/stand/boot32/boot32.c:1.42
--- src/sys/arch/acorn32/stand/boot32/boot32.c:1.41	Fri Mar 21 16:43:00 2014
+++ src/sys/arch/acorn32/stand/boot32/boot32.c	Sat Jun 11 06:25:21 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot32.c,v 1.41 2014/03/21 16:43:00 christos Exp $	*/
+/*	$NetBSD: boot32.c,v 1.42 2016/06/11 06:25:21 dholland Exp $	*/
 
 /*-
  * Copyright (c) 2002 Reinoud Zandijk
@@ -1038,7 +1038,7 @@ process_args(int argc, char **argv, int 
 	if (*file == NULL) {
 		if (*howto & RB_ASKNAME) {
 			printf("boot: ");
-			gets(filename);
+			kgets(filename, sizeof(filename));
 			strcpy(file, filename);
 		} else
 			strcpy(file, "netbsd");

Reply via email to