summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2007-12-13 22:03:21 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2007-12-13 22:03:21 +0000
commitc090d641dbf0a4717b0555e159dd512910b10a0e (patch)
tree0fa999dac97748a5f33b864fee950d2fe842dd48
parenta173092793c660c93e6a7fc89d448913a614bf28 (diff)
str fixes; from chl@
-rw-r--r--usr.sbin/bind/lib/dns/rdata/ch_3/a_1.c2
-rw-r--r--usr.sbin/bind/lib/dns/rdata/generic/ipseckey_45.c6
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, &region);
num = uint8_fromregion(&region);
isc_region_consume(&region, 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(&region);
isc_region_consume(&region, 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(&region);
isc_region_consume(&region, 1);
- sprintf(buf, "%u ", num);
+ snprintf(buf, sizeof(buf), "%u ", num);
RETERR(str_totext(buf, target));
/*