diff options
| author | 2020-01-09 14:44:41 +0000 | |
|---|---|---|
| committer | 2020-01-09 14:44:41 +0000 | |
| commit | 6de8340754bd7c3695dd64b9141e2bde54b70f1c (patch) | |
| tree | 0b2d85ad5f7b04a373531a7c76d42a5f9e3ad53a | |
| parent | Rename udl_mode field to not shadow global `hz' variable. (diff) | |
| download | wireguard-openbsd-6de8340754bd7c3695dd64b9141e2bde54b70f1c.tar.xz wireguard-openbsd-6de8340754bd7c3695dd64b9141e2bde54b70f1c.zip | |
avoid use of sprintf, this is 2020
| -rw-r--r-- | usr.sbin/bind/lib/dns/rdata/in_1/srv_33.c | 8 |
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, ®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)); @@ -117,7 +117,7 @@ totext_in_srv(ARGS_TOTEXT) { */ 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)); @@ -126,7 +126,7 @@ totext_in_srv(ARGS_TOTEXT) { */ 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)); |
