From 62f45902e89003b33035f7a056f8080964551bc9 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 29 Sep 2004 20:59:48 +0000 Subject: s/sprintf/snprintf/ --- usr.sbin/bind/bin/dnssec/dnssec-signzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bind/bin') diff --git a/usr.sbin/bind/bin/dnssec/dnssec-signzone.c b/usr.sbin/bind/bin/dnssec/dnssec-signzone.c index c96cd98d549..f54eed809bb 100644 --- a/usr.sbin/bind/bin/dnssec/dnssec-signzone.c +++ b/usr.sbin/bind/bin/dnssec/dnssec-signzone.c @@ -1498,7 +1498,7 @@ writeset(const char *prefix, dns_rdatatype_t type) { if (filename == NULL) fatal("out of memory"); if (directory != NULL) - sprintf(filename, "%s/", directory); + snprintf(filename, sizeof(filenamelen + 1), "%s/", directory); else filename[0] = 0; strlcat(filename, prefix, filenamelen + 1); -- cgit v1.2.3