summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2003-10-20 08:09:41 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2003-10-20 08:09:41 +0000
commitf59eaf7777301092ad73e4a19c2fbc15bc896573 (patch)
treeec966bdc8ca25c7fc377c5a5f064f0bf97ba4815 /usr.sbin/bind/lib/dns
parenta88bdc93e03f58503fb7a76b97d690a4eaac8e15 (diff)
snprintfify; noted by david krause
Diffstat (limited to 'usr.sbin/bind/lib/dns')
-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));
/*