Module Name:    src
Committed By:   dholland
Date:           Sat Jun 11 06:35:00 UTC 2016

Modified Files:
        src/sys/arch/next68k/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.11 -r1.12 src/sys/arch/next68k/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/next68k/stand/boot/boot.c
diff -u src/sys/arch/next68k/stand/boot/boot.c:1.11 src/sys/arch/next68k/stand/boot/boot.c:1.12
--- src/sys/arch/next68k/stand/boot/boot.c:1.11	Tue Mar 25 19:43:48 2014
+++ src/sys/arch/next68k/stand/boot/boot.c	Sat Jun 11 06:35:00 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: boot.c,v 1.11 2014/03/25 19:43:48 christos Exp $	*/
+/*	$NetBSD: boot.c,v 1.12 2016/06/11 06:35:00 dholland Exp $	*/
 /*
  * Copyright (c) 1994 Rolf Grossmann
  * All rights reserved.
@@ -122,7 +122,7 @@ main(char *boot_arg)
 
 		printf("load of %s: %s\n", kernel, strerror(errno));
 		printf("boot: ");
-		gets(kernel);
+		kgets(kernel, sizeof(kernel));
 		if (kernel[0] == '\0')
 			return 0;
 

Reply via email to