Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Where did the +1 came from ?
details: https://anonhg.NetBSD.org/src/rev/f421b503de0d
branches: trunk
changeset: 1007228:f421b503de0d
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Tue Feb 11 06:33:51 2020 +0000
description:
Where did the +1 came from ?
diffstat:
sys/compat/netbsd32/netbsd32_ioctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r af7eefb13147 -r f421b503de0d sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c Tue Feb 11 06:26:19 2020 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c Tue Feb 11 06:33:51 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_ioctl.c,v 1.108 2020/02/10 22:33:28 mlelstv Exp $ */
+/* $NetBSD: netbsd32_ioctl.c,v 1.109 2020/02/11 06:33:51 mlelstv Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.108 2020/02/10 22:33:28 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.109 2020/02/11 06:33:51 mlelstv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ntp.h"
@@ -147,7 +147,7 @@
struct if_addrprefreq *ifap, u_long cmd)
{
- memcpy(ifap->ifap_name, ifap32->ifap_name, IFNAMSIZ+1);
+ memcpy(ifap->ifap_name, ifap32->ifap_name, IFNAMSIZ);
ifap->ifap_preference = ifap32->ifap_preference;
memcpy(&ifap->ifap_addr, &ifap32->ifap_addr,
uimin(ifap32->ifap_addr.ss_len, _SS_MAXSIZE));
Home |
Main Index |
Thread Index |
Old Index