Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/dreamcast/dev/g2 make a copy of the interrupt strin...



details:   https://anonhg.NetBSD.org/src/rev/d03a19bacc52
branches:  trunk
changeset: 328331:d03a19bacc52
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 31 13:12:55 2014 +0000

description:
make a copy of the interrupt string in buf.

diffstat:

 sys/arch/dreamcast/dev/g2/gapspci_pci.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 1cfe8e665957 -r d03a19bacc52 sys/arch/dreamcast/dev/g2/gapspci_pci.c
--- a/sys/arch/dreamcast/dev/g2/gapspci_pci.c   Mon Mar 31 12:55:46 2014 +0000
+++ b/sys/arch/dreamcast/dev/g2/gapspci_pci.c   Mon Mar 31 13:12:55 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gapspci_pci.c,v 1.14 2014/03/31 12:38:40 martin Exp $  */
+/*     $NetBSD: gapspci_pci.c,v 1.15 2014/03/31 13:12:55 christos Exp $        */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.14 2014/03/31 12:38:40 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gapspci_pci.c,v 1.15 2014/03/31 13:12:55 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -201,7 +201,8 @@
     char *buf, size_t len)
 {
 
-       return sysasic_intr_string(SYSASIC_IRL11);
+       strlcpy(buf, sysasic_intr_string(SYSASIC_IRL11), len);
+       return buf;
 }
 
 void *



Home | Main Index | Thread Index | Old Index