Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 CID 1297228: Use strlcpy



details:   https://anonhg.NetBSD.org/src/rev/e8ddf0a67895
branches:  trunk
changeset: 338038:e8ddf0a67895
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 09 13:05:51 2015 +0000

description:
CID 1297228: Use strlcpy

diffstat:

 sys/arch/x86/x86/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 622f5ead95ae -r e8ddf0a67895 sys/arch/x86/x86/intr.c
--- a/sys/arch/x86/x86/intr.c   Sat May 09 12:55:06 2015 +0000
+++ b/sys/arch/x86/x86/intr.c   Sat May 09 13:05:51 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.83 2015/05/07 12:52:46 martin Exp $ */
+/*     $NetBSD: intr.c,v 1.84 2015/05/09 13:05:51 christos Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.83 2015/05/07 12:52:46 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.84 2015/05/09 13:05:51 christos Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -560,7 +560,7 @@
                pep->cpuid = ci->ci_cpuid;
                pep++;
        }
-       strncpy(isp->is_intrid, intrid, sizeof(isp->is_intrid));
+       strlcpy(isp->is_intrid, intrid, sizeof(isp->is_intrid));
 
        SIMPLEQ_INSERT_TAIL(&io_interrupt_sources, isp, is_list);
 



Home | Main Index | Thread Index | Old Index