summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/filter.c')
-rw-r--r--usr.sbin/ppp/filter.c4
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];
OpenPOWER on IntegriCloud