summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/tools
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/tools
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/tools')
-rw-r--r--libexec/bootpd/tools/bootptest/bootptest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/bootpd/tools/bootptest/bootptest.c b/libexec/bootpd/tools/bootptest/bootptest.c
index 2e23112..92a3837 100644
--- a/libexec/bootpd/tools/bootptest/bootptest.c
+++ b/libexec/bootpd/tools/bootptest/bootptest.c
@@ -31,7 +31,7 @@
* 09/28/93 Released version 1.0
* 09/93 Original developed by Gordon W. Ross <gwr@mc.com>
*
- * $Id$
+ * $Id: bootptest.c,v 1.4 1997/02/22 14:21:20 peter Exp $
*/
char *usage = "bootptest [-h] server-name [vendor-data-template-file]";
@@ -503,7 +503,7 @@ ipaddr_string(ina)
u_char *p;
p = (u_char *) ina;
- sprintf(b, "%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
+ snprintf(b, sizeof(b), "%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
return (b);
}
OpenPOWER on IntegriCloud