Module Name:    src
Committed By:   dholland
Date:           Sat Jun 11 06:28:07 UTC 2016

Modified Files:
        src/sys/arch/atari/stand/bootxx: bootxx.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/atari/stand/bootxx/bootxx.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/atari/stand/bootxx/bootxx.c
diff -u src/sys/arch/atari/stand/bootxx/bootxx.c:1.16 src/sys/arch/atari/stand/bootxx/bootxx.c:1.17
--- src/sys/arch/atari/stand/bootxx/bootxx.c:1.16	Sat Nov 15 06:30:10 2014
+++ src/sys/arch/atari/stand/bootxx/bootxx.c	Sat Jun 11 06:28:07 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: bootxx.c,v 1.16 2014/11/15 06:30:10 tsutsui Exp $	*/
+/*	$NetBSD: bootxx.c,v 1.17 2016/06/11 06:28:07 dholland Exp $	*/
 
 /*
  * Copyright (c) 1995 Waldi Ravens.
@@ -66,7 +66,7 @@ bootxx(void *readsector, void *disklabel
 	setheap((void *)HEAPSTART, (void *)HEAPEND);
 
 	printf("\033v\nNetBSD/atari secondary bootloader"
-						" ($Revision: 1.16 $)\n\n");
+						" ($Revision: 1.17 $)\n\n");
 
 	if (init_dskio(readsector, disklabel, -1))
 		return -1;
@@ -109,7 +109,7 @@ usr_info(osdsc_t *od)
 
 	printf("\nEnter os-type [.%s] root-fs [:a] kernel [%s]"
 	       " options [none]:\n\033e", od->ostype, od->osname);
-	gets(p);
+	kgets(p, sizeof(line));
 	printf("\033f");
 
 	for (;;) {

Reply via email to