summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns/rdata/generic/sig_24.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2019-12-17 01:46:40 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2019-12-17 01:46:40 +0000
commitd0673d4fa7df2e687137638bf735262ac9b5e7b8 (patch)
tree0ce23c609372c210875416da9aea0e78994f98a2 /usr.sbin/bind/lib/dns/rdata/generic/sig_24.c
parent2a9fdf15805b8f87e4225b47879f76fd57ae60bc (diff)
update to 9.10.8-P1, last isc-licensed release
Diffstat (limited to 'usr.sbin/bind/lib/dns/rdata/generic/sig_24.c')
-rw-r--r--usr.sbin/bind/lib/dns/rdata/generic/sig_24.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.sbin/bind/lib/dns/rdata/generic/sig_24.c b/usr.sbin/bind/lib/dns/rdata/generic/sig_24.c
index 4fc3aa734a2..f9add4f002c 100644
--- a/usr.sbin/bind/lib/dns/rdata/generic/sig_24.c
+++ b/usr.sbin/bind/lib/dns/rdata/generic/sig_24.c
@@ -1,6 +1,5 @@
/*
- * Copyright (C) 2004, 2005, 2007, 2009, 2011, 2012, 2015 Internet Systems Consortium, Inc. ("ISC")
- * Copyright (C) 1999-2003 Internet Software Consortium.
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sig_24.c,v 1.6 2019/12/16 16:16:25 deraadt Exp $ */
+/* $Id: sig_24.c,v 1.7 2019/12/17 01:46:33 sthen Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
@@ -155,7 +154,7 @@ totext_sig(ARGS_TOTEXT) {
if (dns_rdatatype_isknown(covered) && covered != 0) {
RETERR(dns_rdatatype_totext(covered, target));
} else {
- sprintf(buf, "%u", covered);
+ snprintf(buf, sizeof(buf), "%u", covered);
RETERR(str_totext(buf, target));
}
RETERR(str_totext(" ", target));
@@ -163,7 +162,7 @@ totext_sig(ARGS_TOTEXT) {
/*
* Algorithm.
*/
- sprintf(buf, "%u", sr.base[0]);
+ snprintf(buf, sizeof(buf), "%u", sr.base[0]);
isc_region_consume(&sr, 1);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -171,7 +170,7 @@ totext_sig(ARGS_TOTEXT) {
/*
* Labels.
*/
- sprintf(buf, "%u", sr.base[0]);
+ snprintf(buf, sizeof(buf), "%u", sr.base[0]);
isc_region_consume(&sr, 1);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -181,7 +180,7 @@ totext_sig(ARGS_TOTEXT) {
*/
ttl = uint32_fromregion(&sr);
isc_region_consume(&sr, 4);
- sprintf(buf, "%lu", ttl);
+ snprintf(buf, sizeof(buf), "%lu", ttl);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -209,7 +208,7 @@ totext_sig(ARGS_TOTEXT) {
*/
foot = uint16_fromregion(&sr);
isc_region_consume(&sr, 2);
- sprintf(buf, "%lu", foot);
+ snprintf(buf, sizeof(buf), "%lu", foot);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));