summaryrefslogtreecommitdiff
path: root/usr.sbin/authpf/authpf.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2006-03-14 21:45:15 +0000
committerBob Beck <beck@cvs.openbsd.org>2006-03-14 21:45:15 +0000
commit360e75a9bad1a5845e52825222231d9910f71be0 (patch)
tree2576b3dd0e99f04172d67b170db24f52420f5809 /usr.sbin/authpf/authpf.c
parentd53597c4a458ef03fea6ff0548485d5174d9056d (diff)
fix incorrect sizeof(), spotted by ckuethe
ok deraadt@
Diffstat (limited to 'usr.sbin/authpf/authpf.c')
-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;