summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2003-03-05 21:15:18 +0000
committerwiz <wiz@NetBSD.org>2003-03-05 21:15:18 +0000
commitff2bebb7311ea3a80958bb82f076c2b95c710b53 (patch)
treeb7096714d98f1a4515a3d3243f53f3dc6b7171ef /usr.sbin/mrouted
parentb4cca6335193ca7f1bdd2df9bb6916fc95305e4f (diff)
Use vsnprintf instead of vsprintf. From OpenBSD.
Diffstat (limited to 'usr.sbin/mrouted')
-rw-r--r--usr.sbin/mrouted/cfparse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y
index 510763e344b..453c662efb1 100644
--- a/usr.sbin/mrouted/cfparse.y
+++ b/usr.sbin/mrouted/cfparse.y
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cfparse.y,v 1.10 2003/03/05 21:05:38 wiz Exp $ */
+/* $NetBSD: cfparse.y,v 1.11 2003/03/05 21:15:18 wiz Exp $ */
/*
* Configuration file parser for mrouted.
@@ -398,7 +398,7 @@ fatal(char *fmt, ...)
char buf[200];
va_start(ap, fmt);
- vsprintf(buf, fmt, ap);
+ vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
logit(LOG_ERR,0,"%s: %s near line %d", configfilename, buf, lineno);
@@ -411,7 +411,7 @@ warn(char *fmt, ...)
char buf[200];
va_start(ap, fmt);
- vsprintf(buf, fmt, ap);
+ vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
logit(LOG_WARNING,0,"%s: %s near line %d", configfilename, buf, lineno);