diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2004-09-29 20:59:48 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2004-09-29 20:59:48 +0000 |
commit | 62f45902e89003b33035f7a056f8080964551bc9 (patch) | |
tree | fc7e197af0f2c798151e83d57a24ac02afaec23d | |
parent | f5e2947623129ea59d2a357bf6a195d586f45af4 (diff) |
s/sprintf/snprintf/
-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); |