Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/news68k/stand/bootxx Replace sprintf with snprintf
details: https://anonhg.NetBSD.org/src/rev/ae78432262d1
branches: trunk
changeset: 328189:ae78432262d1
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Sat Mar 29 05:07:25 2014 +0000
description:
Replace sprintf with snprintf
diffstat:
sys/arch/news68k/stand/bootxx/bootxx.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 9352c760a732 -r ae78432262d1 sys/arch/news68k/stand/bootxx/bootxx.c
--- a/sys/arch/news68k/stand/bootxx/bootxx.c Sat Mar 29 05:03:43 2014 +0000
+++ b/sys/arch/news68k/stand/bootxx/bootxx.c Sat Mar 29 05:07:25 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootxx.c,v 1.10 2008/05/14 13:29:28 tsutsui Exp $ */
+/* $NetBSD: bootxx.c,v 1.11 2014/03/29 05:07:25 ozaki-r Exp $ */
/*-
* Copyright (c) 1999 Izumi Tsutsui. All rights reserved.
@@ -113,7 +113,8 @@
return;
}
- sprintf(devname, "%s(%d,%d,%d)", devs[type], ctlr, unit, part);
+ snprintf(devname, sizeof(devname), "%s(%d,%d,%d)",
+ devs[type], ctlr, unit, part);
fd = rom_open(devname, 0);
if (fd == -1) {
Home |
Main Index |
Thread Index |
Old Index