summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-01-13 17:32:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-01-13 17:32:13 +0000
commit6c1ce39c4035cbc8de5760a822c69e56a5ccc94e (patch)
tree2dadfbaf1e2490c8bff87e27a67f13775587ab1d /usr.sbin
parentb10d32f9e71c25d7aad281e86b9ddc570c673ce6 (diff)
Fix snprintf length field; from cloder@
Diffstat (limited to 'usr.sbin')
-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);