diff options
Diffstat (limited to 'usr.sbin/bind/bin/dnssec/dnssec-signzone.c')
-rw-r--r-- | usr.sbin/bind/bin/dnssec/dnssec-signzone.c | 2 |
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 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); |