From 6c1ce39c4035cbc8de5760a822c69e56a5ccc94e Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 13 Jan 2005 17:32:13 +0000 Subject: Fix snprintf length field; from cloder@ --- usr.sbin/bind/bin/dnssec/dnssec-signzone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/bind/bin/dnssec/dnssec-signzone.c b/usr.sbin/bind/bin/dnssec/dnssec-signzone.c index f54eed809bb..683914b790c 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) - snprintf(filename, sizeof(filenamelen + 1), "%s/", directory); + snprintf(filename, filenamelen + 1, "%s/", directory); else filename[0] = 0; strlcat(filename, prefix, filenamelen + 1); -- cgit v1.2.3