Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/next68k/stand/boot kill sprintf
details: https://anonhg.NetBSD.org/src/rev/749c1fc21d37
branches: trunk
changeset: 328081:749c1fc21d37
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 25 19:43:48 2014 +0000
description:
kill sprintf
diffstat:
sys/arch/next68k/stand/boot/boot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r ef0d3535e204 -r 749c1fc21d37 sys/arch/next68k/stand/boot/boot.c
--- a/sys/arch/next68k/stand/boot/boot.c Tue Mar 25 19:41:32 2014 +0000
+++ b/sys/arch/next68k/stand/boot/boot.c Tue Mar 25 19:43:48 2014 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index