Module Name: src Committed By: knakahara Date: Mon Jul 11 23:09:35 UTC 2016
Modified Files: src/sys/arch/x86/x86: intr.c Log Message: should use strlcpy instead of strncpy. pointed out by dholland@n.o. To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/sys/arch/x86/x86/intr.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/x86/x86/intr.c diff -u src/sys/arch/x86/x86/intr.c:1.93 src/sys/arch/x86/x86/intr.c:1.94 --- src/sys/arch/x86/x86/intr.c:1.93 Mon Jul 11 09:42:20 2016 +++ src/sys/arch/x86/x86/intr.c Mon Jul 11 23:09:34 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: intr.c,v 1.93 2016/07/11 09:42:20 knakahara Exp $ */ +/* $NetBSD: intr.c,v 1.94 2016/07/11 23:09:34 knakahara 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.93 2016/07/11 09:42:20 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.94 2016/07/11 23:09:34 knakahara Exp $"); #include "opt_intrdebug.h" #include "opt_multiprocessor.h" @@ -2103,7 +2103,7 @@ interrupt_get_devname(const char *intrid } slot = ih->ih_slot; isp = ih->ih_cpu->ci_isources[slot]; - strncpy(buf, isp->is_xname, len); + strlcpy(buf, isp->is_xname, len); out: mutex_exit(&cpu_lock);