summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-05-07 20:39:27 +0000
committerderaadt <deraadt@openbsd.org>2003-05-07 20:39:27 +0000
commit048911c19b3d0d93e60fd180b25d15511e0cf0f5 (patch)
tree01e9563cd702b6be807792dd85c6494a990031b2 /usr.sbin/bind/lib
parentdisable profiling for tlb fault handlers (diff)
downloadwireguard-openbsd-048911c19b3d0d93e60fd180b25d15511e0cf0f5.tar.xz
wireguard-openbsd-048911c19b3d0d93e60fd180b25d15511e0cf0f5.zip
bounds were sizeof(pointer) rather than size of the object; found with
anil's gcc bounds checker mod
Diffstat (limited to 'usr.sbin/bind/lib')
-rw-r--r--usr.sbin/bind/lib/dns/rbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/dns/rbt.c b/usr.sbin/bind/lib/dns/rbt.c
index c2eb16d69c1..3dd6ce5fc34 100644
--- a/usr.sbin/bind/lib/dns/rbt.c
+++ b/usr.sbin/bind/lib/dns/rbt.c
@@ -1526,7 +1526,7 @@ dns_rbt_formatnodename(dns_rbtnode_t *node, char *printname, unsigned int size)
if (result == ISC_R_SUCCESS)
dns_name_format(name, printname, size);
else
- snprintf(printname, sizeof(printname),
+ snprintf(printname, size,
"<error building name: %s>",
dns_result_totext(result));