summaryrefslogtreecommitdiffstats
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2006-03-14 21:45:14 +0000
committerbeck <beck@openbsd.org>2006-03-14 21:45:14 +0000
commitc8c96bff883c4128164a2796e44bdc7a8a5cdc45 (patch)
tree58dd6ba02a3895b2e0324d0e4ee0a84a52b45557 /usr.sbin/authpf
parentmake BN_is_prime() realise that 2 is, in fact, a prime number. (diff)
downloadwireguard-openbsd-c8c96bff883c4128164a2796e44bdc7a8a5cdc45.tar.xz
wireguard-openbsd-c8c96bff883c4128164a2796e44bdc7a8a5cdc45.zip
fix incorrect sizeof(), spotted by ckuethe
ok deraadt@
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index f331dec69f3..94ca33abccb 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.96 2005/12/12 16:06:01 beck Exp $ */
+/* $OpenBSD: authpf.c,v 1.97 2006/03/14 21:45:14 beck Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -739,7 +739,8 @@ change_table(int add, const char *luser, const char *ipsrc)
struct pfr_addr addr;
bzero(&io, sizeof(io));
- strlcpy(io.pfrio_table.pfrt_name, tablename, sizeof(io.pfrio_table));
+ strlcpy(io.pfrio_table.pfrt_name, tablename,
+ sizeof(io.pfrio_table.pfrt_name));
io.pfrio_buffer = &addr;
io.pfrio_esize = sizeof(addr);
io.pfrio_size = 1;