diff options
| author | dholland <dholland@NetBSD.org> | 2016-06-11 06:35:00 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2016-06-11 06:35:00 +0000 |
| commit | 73c7399dc2cdc556ccf348c4044f4dd891fd42e1 (patch) | |
| tree | 274652b4b2adf3d9db5b0ae46670038873cb9700 /sys | |
| parent | 869687c72f64279fc487cd27796ce8dca4ae68aa (diff) | |
PR 51200 gets in libsa considered harmful: use kgets
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/next68k/stand/boot/boot.c | 4 | ||||
| -rw-r--r-- | sys/arch/ofppc/stand/ofwboot/boot.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/next68k/stand/boot/boot.c b/sys/arch/next68k/stand/boot/boot.c index c810e1094b6..9a58aa49fc6 100644 --- a/sys/arch/next68k/stand/boot/boot.c +++ b/sys/arch/next68k/stand/boot/boot.c @@ -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; diff --git a/sys/arch/ofppc/stand/ofwboot/boot.c b/sys/arch/ofppc/stand/ofwboot/boot.c index 83377331eba..0ba4cd83835 100644 --- a/sys/arch/ofppc/stand/ofwboot/boot.c +++ b/sys/arch/ofppc/stand/ofwboot/boot.c @@ -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); } |
