Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/pci use sprintf.
details: https://anonhg.NetBSD.org/src/rev/0fe7200b8a52
branches: trunk
changeset: 328093:0fe7200b8a52
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 26 08:20:29 2014 +0000
description:
use sprintf.
diffstat:
sys/arch/arc/pci/necpb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 46a559fc550c -r 0fe7200b8a52 sys/arch/arc/pci/necpb.c
--- a/sys/arch/arc/pci/necpb.c Wed Mar 26 08:19:44 2014 +0000
+++ b/sys/arch/arc/pci/necpb.c Wed Mar 26 08:20:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: necpb.c,v 1.39 2012/10/27 17:17:36 chs Exp $ */
+/* $NetBSD: necpb.c,v 1.40 2014/03/26 08:20:29 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: necpb.c,v 1.39 2012/10/27 17:17:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: necpb.c,v 1.40 2014/03/26 08:20:29 christos Exp $");
#include "opt_pci.h"
@@ -386,7 +386,7 @@
if (ih >= 4)
panic("%s: bogus handle %ld", __func__, ih);
- sprintf(str, "int %c", 'A' + (int)ih);
+ snprintf(str, sizeof(str), "int %c", 'A' + (int)ih);
return str;
}
Home |
Main Index |
Thread Index |
Old Index