summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/report.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-12-24 18:56:03 +0000
committerimp <imp@FreeBSD.org>1997-12-24 18:56:03 +0000
commit604bcde61e03e4ca051aae2c87b0f250a3806280 (patch)
tree1ef9d5908599dfec43502dee23a1b807123cb4dd /libexec/bootpd/report.c
parentd97fabbb53b5ec9256c2d5ae44081162784d35d7 (diff)
downloadFreeBSD-src-604bcde61e03e4ca051aae2c87b0f250a3806280.zip
FreeBSD-src-604bcde61e03e4ca051aae2c87b0f250a3806280.tar.gz
Use snprintf rather than printf out of paranoia
Obtained from: OpenBSD
Diffstat (limited to 'libexec/bootpd/report.c')
-rw-r--r--libexec/bootpd/report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/bootpd/report.c b/libexec/bootpd/report.c
index 4f7f036..e754a30 100644
--- a/libexec/bootpd/report.c
+++ b/libexec/bootpd/report.c
@@ -111,7 +111,7 @@ report(priority, fmt, va_alist)
#else
va_start(ap);
#endif
- vsprintf(buf, fmt, ap);
+ vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
/*
OpenPOWER on IntegriCloud