Module Name:    src
Committed By:   christos
Date:           Wed Mar 26 08:20:29 UTC 2014

Modified Files:
        src/sys/arch/arc/pci: necpb.c

Log Message:
use sprintf.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/arc/pci/necpb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arc/pci/necpb.c
diff -u src/sys/arch/arc/pci/necpb.c:1.39 src/sys/arch/arc/pci/necpb.c:1.40
--- src/sys/arch/arc/pci/necpb.c:1.39	Sat Oct 27 13:17:36 2012
+++ src/sys/arch/arc/pci/necpb.c	Wed Mar 26 04:20:29 2014
@@ -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 @@ necpb_intr_string(pci_chipset_tag_t pc, 
 
 	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;
 }
 

Reply via email to