diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-06 10:22:30 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-06 10:22:30 +0000 |
commit | ffa0ca8c090934f01ce0b62dbd1d818745a739aa (patch) | |
tree | d3605227e20cc1c217e4e7cbb65744fae463aa7b /lib/libpcap | |
parent | a14390fe9e9ae5805f69dc9a0d6c2455744d8234 (diff) |
fix format string
ok ray@ gilles@
Diffstat (limited to 'lib/libpcap')
-rw-r--r-- | lib/libpcap/gencode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index d5519e5b896..e07ac825efb 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.28 2007/01/02 18:35:17 reyk Exp $ */ +/* $OpenBSD: gencode.c,v 1.29 2007/11/06 10:22:29 chl Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -3028,7 +3028,7 @@ gen_pf_ruleset(char *ruleset) /* NOTREACHED */ } if (strlen(ruleset) >= sizeof(((struct pfloghdr *)0)->ruleset)) { - bpf_error("ruleset names can only be %d characters", + bpf_error("ruleset names can only be %zu characters", sizeof(((struct pfloghdr *)0)->ruleset) - 1); /* NOTREACHED */ } |