diff options
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.c | 2 |
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, ®ion); num = uint16_fromregion(®ion); isc_region_consume(®ion, 2); - sprintf(buf, "%u", num); + snprintf(buf, sizeof(buf), "%u", num); RETERR(str_totext(buf, target)); RETERR(str_totext(" ", target)); dns_name_fromregion(&name, ®ion); |