summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bind/lib/dns/rdata/generic/sshfp_44.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bind/lib/dns/rdata/generic/sshfp_44.c b/usr.sbin/bind/lib/dns/rdata/generic/sshfp_44.c
index 29e8a26b179..ea732590825 100644
--- a/usr.sbin/bind/lib/dns/rdata/generic/sshfp_44.c
+++ b/usr.sbin/bind/lib/dns/rdata/generic/sshfp_44.c
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sshfp_44.c,v 1.1 2003/10/19 18:19:11 jakob Exp $ */
+/* $Id: sshfp_44.c,v 1.2 2003/10/20 08:09:40 jakob Exp $ */
/* draft-ietf-secsh-dns-05.txt */
@@ -79,7 +79,7 @@ totext_sshfp(ARGS_TOTEXT) {
*/
n = uint8_fromregion(&sr);
isc_region_consume(&sr, 1);
- sprintf(buf, "%u ", n);
+ snprintf(buf, sizeof(buf), "%u ", n);
RETERR(str_totext(buf, target));
/*
@@ -87,7 +87,7 @@ totext_sshfp(ARGS_TOTEXT) {
*/
n = uint8_fromregion(&sr);
isc_region_consume(&sr, 1);
- sprintf(buf, "%u", n);
+ snprintf(buf, sizeof(buf), "%u", n);
RETERR(str_totext(buf, target));
/*