summaryrefslogtreecommitdiff
path: root/libexec/bootpd/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-12-24 18:56:03 +0000
committerWarner Losh <imp@FreeBSD.org>1997-12-24 18:56:03 +0000
commit9bc34f7ce14c4401e6ee449f9eeb2c9222fbe756 (patch)
tree387678feec78fd449ac77e874c0ce12402366d81 /libexec/bootpd/tools
parentb44e4b7a2b2e4abdebb44e9c33b06a6d967ef9d7 (diff)
Notes
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 2e2311284fc2..92a38372ffc5 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);
}