summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-01-09 14:44:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-01-09 14:44:42 +0000
commita3ce925304553dae1c22f8bb69df514ffc39d7d9 (patch)
treea9b325feb003595aa099136a6f1d17e206abc20f /usr.sbin/bind/lib/dns
parentbf374655f8ca8341ddf829c2cb61631cc0a8cb57 (diff)
avoid use of sprintf, this is 2020
Diffstat (limited to 'usr.sbin/bind/lib/dns')
-rw-r--r--usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c b/usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c
index 54d531702de..4b2e7eed98c 100644
--- a/usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c
+++ b/usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: srv_33.c,v 1.7 2019/12/17 01:46:34 sthen Exp $ */
+/* $Id: srv_33.c,v 1.8 2020/01/09 14:44:41 deraadt Exp $ */
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
@@ -108,7 +108,7 @@ totext_in_srv(ARGS_TOTEXT) {
dns_rdata_toregion(rdata, &region);
num = uint16_fromregion(&region);
isc_region_consume(&region, 2);
- sprintf(buf, "%u", num);
+ snprintf(buf, sizeof buf, "%u", num);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -117,7 +117,7 @@ totext_in_srv(ARGS_TOTEXT) {
*/
num = uint16_fromregion(&region);
isc_region_consume(&region, 2);
- sprintf(buf, "%u", num);
+ snprintf(buf, sizeof buf, "%u", num);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -126,7 +126,7 @@ totext_in_srv(ARGS_TOTEXT) {
*/
num = uint16_fromregion(&region);
isc_region_consume(&region, 2);
- sprintf(buf, "%u", num);
+ snprintf(buf, sizeof buf, "%u", num);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));