kill sprintf
This commit is contained in:
parent
6d134c6c66
commit
572523bb08
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: boot.c,v 1.10 2005/12/11 12:18:29 christos Exp $ */
|
||||
/* $NetBSD: boot.c,v 1.11 2014/03/25 19:43:48 christos Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994 Rolf Grossmann
|
||||
* All rights reserved.
|
||||
@ -143,10 +143,10 @@ main(char *boot_arg)
|
||||
strcpy (p, devsw[dev].dv_name);
|
||||
MON(char *, MG_boot_dev) = p;
|
||||
p += strlen (p) + 1;
|
||||
sprintf (p, "(%d,%d,%d)", count, lun, part);
|
||||
snprintf (p, 1024, "(%d,%d,%d)", count, lun, part); /* XXX */
|
||||
MON(char *, MG_boot_info) = p;
|
||||
p += strlen (p) + 1;
|
||||
sprintf (p, "%s", file);
|
||||
snprintf (p, 1024, "%s", file); /* XXX */
|
||||
MON(char *, MG_boot_file) = p;
|
||||
#ifdef PROCESS_ARGS
|
||||
p += strlen (p) + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user