Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys use sizeof() properly (gcc-7)
details: https://anonhg.NetBSD.org/src/rev/14cd303f2551
branches: trunk
changeset: 448667:14cd303f2551
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 06 17:56:57 2019 +0000
description:
use sizeof() properly (gcc-7)
diffstat:
external/cddl/osnet/sys/sys/cred.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 8741647d89fc -r 14cd303f2551 external/cddl/osnet/sys/sys/cred.h
--- a/external/cddl/osnet/sys/sys/cred.h Wed Feb 06 17:21:51 2019 +0000
+++ b/external/cddl/osnet/sys/sys/cred.h Wed Feb 06 17:56:57 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cred.h,v 1.5 2018/05/28 21:05:10 chs Exp $ */
+/* $NetBSD: cred.h,v 1.6 2019/02/06 17:56:57 christos Exp $ */
/*-
* Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -66,7 +66,7 @@
{
static gid_t gids[NGROUPS_MAX];
- memset(gids, 0, NGROUPS_MAX);
+ memset(gids, 0, sizeof(gids));
if (kauth_cred_getgroups(cr, gids, NGROUPS_MAX, UIO_SYSSPACE) != 0)
return NULL;
Home |
Main Index |
Thread Index |
Old Index