diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-30 07:36:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-30 07:36:45 +0000 |
commit | 0f62153ff22c58ff246e73db9768f9eac5dc1bc0 (patch) | |
tree | 99de4ff19cc127b9177e3c02a4c8af7239c2ae73 /usr.sbin/mrouted/cfparse.y | |
parent | fbc3641e11aa4c7650b1951a473b7a5eadd38958 (diff) |
snprintf in .y files
Diffstat (limited to 'usr.sbin/mrouted/cfparse.y')
-rw-r--r-- | usr.sbin/mrouted/cfparse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y index bb805e25acc..47dc14510d5 100644 --- a/usr.sbin/mrouted/cfparse.y +++ b/usr.sbin/mrouted/cfparse.y @@ -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); log(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); log(LOG_WARNING,0,"%s: %s near line %d", configfilename, buf, lineno); |