summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bind/bin/dnssec/dnssec-signzone.c2
1 files changed, 1 insertions, 1 deletions
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);