From dba0da8f7971b5ddfa7fecfffd281368c2dfb355 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 9 Mar 2018 16:14:48 +0000 Subject: Remove bogus copying of bootargs. From Arrtturi Alm. --- sys/arch/arm64/arm64/machdep.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/arm64/arm64/machdep.c b/sys/arch/arm64/arm64/machdep.c index ac3a9f6344b..d45f6e18cf9 100644 --- a/sys/arch/arm64/arm64/machdep.c +++ b/sys/arch/arm64/arm64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.29 2018/02/06 20:35:21 naddy Exp $ */ +/* $OpenBSD: machdep.c,v 1.30 2018/03/09 16:14:47 kettenis Exp $ */ /* * Copyright (c) 2014 Patrick Wildt * @@ -1121,6 +1121,7 @@ collect_kernel_args(char *args) /* Make a local copy of the bootargs */ strncpy(bootargs, args, MAX_BOOT_STRING - sizeof(int)); } + void process_kernel_args(void) { @@ -1132,11 +1133,6 @@ process_kernel_args(void) } boothowto = 0; - - /* Make a local copy of the bootargs */ - strncpy(bootargs, cp, MAX_BOOT_STRING - sizeof(int)); - - cp = bootargs; boot_file = bootargs; /* Skip the kernel image filename */ -- cgit v1.2.3