diff options
author | beck <beck@openbsd.org> | 2006-03-14 21:45:14 +0000 |
---|---|---|
committer | beck <beck@openbsd.org> | 2006-03-14 21:45:14 +0000 |
commit | c8c96bff883c4128164a2796e44bdc7a8a5cdc45 (patch) | |
tree | 58dd6ba02a3895b2e0324d0e4ee0a84a52b45557 /usr.sbin/authpf | |
parent | make BN_is_prime() realise that 2 is, in fact, a prime number. (diff) | |
download | wireguard-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.c | 5 |
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; |