summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns/rdata/generic/rt_21.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/lib/dns/rdata/generic/rt_21.c')
-rw-r--r--usr.sbin/bind/lib/dns/rdata/generic/rt_21.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/dns/rdata/generic/rt_21.c b/usr.sbin/bind/lib/dns/rdata/generic/rt_21.c
index 13af2c5b18f..a3c02d3b725 100644
--- a/usr.sbin/bind/lib/dns/rdata/generic/rt_21.c
+++ b/usr.sbin/bind/lib/dns/rdata/generic/rt_21.c
@@ -72,7 +72,7 @@ totext_rt(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));
dns_name_fromregion(&name, &region);