diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-13 22:03:21 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-13 22:03:21 +0000 |
commit | c090d641dbf0a4717b0555e159dd512910b10a0e (patch) | |
tree | 0fa999dac97748a5f33b864fee950d2fe842dd48 | |
parent | a173092793c660c93e6a7fc89d448913a614bf28 (diff) |
str fixes; from chl@
-rw-r--r-- | usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c b/usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c index 7a09b436f40..2629bfb2286 100644 --- a/usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c +++ b/usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c @@ -87,7 +87,7 @@ totext_ch_a(ARGS_TOTEXT) { sub = name_prefix(&name, tctx->origin, &prefix); RETERR(dns_name_totext(&prefix, sub, target)); - sprintf(buf, "%o", addr); /* note octal */ + snprintf(buf, sizeof(buf), "%o", addr); /* note octal */ RETERR(str_totext(" ", target)); return (str_totext(buf, target)); } diff --git a/usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c b/usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c index 6c30dea9772..db86386759b 100644 --- a/usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c +++ b/usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c @@ -144,7 +144,7 @@ totext_ipseckey(ARGS_TOTEXT) { dns_rdata_toregion(rdata, ®ion); num = uint8_fromregion(®ion); isc_region_consume(®ion, 1); - sprintf(buf, "%u ", num); + snprintf(buf, sizeof(buf), "%u ", num); RETERR(str_totext(buf, target)); /* @@ -152,7 +152,7 @@ totext_ipseckey(ARGS_TOTEXT) { */ gateway = uint8_fromregion(®ion); isc_region_consume(®ion, 1); - sprintf(buf, "%u ", gateway); + snprintf(buf, sizeof(buf), "%u ", gateway); RETERR(str_totext(buf, target)); /* @@ -160,7 +160,7 @@ totext_ipseckey(ARGS_TOTEXT) { */ num = uint8_fromregion(®ion); isc_region_consume(®ion, 1); - sprintf(buf, "%u ", num); + snprintf(buf, sizeof(buf), "%u ", num); RETERR(str_totext(buf, target)); /* |