diff options
author | brian <brian@FreeBSD.org> | 1999-07-28 03:01:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-07-28 03:01:52 +0000 |
commit | 5245387bb34fc563bc9be681fc8d82661b5fa0ce (patch) | |
tree | cd52ceebd10d7b7bbcf31fa465e1f0fd85f88db1 /usr.sbin/ppp/filter.c | |
parent | 93b3dc59cda9b48f934a6b08933bb0fc5bc66e69 (diff) | |
download | FreeBSD-src-5245387bb34fc563bc9be681fc8d82661b5fa0ce.zip FreeBSD-src-5245387bb34fc563bc9be681fc8d82661b5fa0ce.tar.gz |
Fix a load of typos
Use sizeof, not a hardcode value.
Some of it submitted by: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
Diffstat (limited to 'usr.sbin/ppp/filter.c')
-rw-r--r-- | usr.sbin/ppp/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c index 08f9552..b9e129e 100644 --- a/usr.sbin/ppp/filter.c +++ b/usr.sbin/ppp/filter.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: filter.c,v 1.31 1999/07/26 11:15:10 brian Exp $ + * $Id: filter.c,v 1.32 1999/07/27 23:43:58 brian Exp $ * * TODO: Shoud send ICMP error message when we discard packets. */ @@ -488,7 +488,7 @@ filter_Action2Nam(int act) static char buf[8]; if (act >= 0 && act < MAXFILTERS) { - snprintf(buf, 8, "%6d ", act); + snprintf(buf, sizeof buf, "%6d ", act); return buf; } else if (act >= A_NONE && act < A_NONE + sizeof(actname)/sizeof(char *)) return actname[act - A_NONE]; |