summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/nameser/ns_samedomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/lib/nameser/ns_samedomain.c')
-rw-r--r--contrib/bind/lib/nameser/ns_samedomain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bind/lib/nameser/ns_samedomain.c b/contrib/bind/lib/nameser/ns_samedomain.c
index c847924..e29a8f8 100644
--- a/contrib/bind/lib/nameser/ns_samedomain.c
+++ b/contrib/bind/lib/nameser/ns_samedomain.c
@@ -166,7 +166,7 @@ int
ns_makecanon(const char *src, char *dst, size_t dstsize) {
size_t n = strlen(src);
- if (n + sizeof "." > dstsize) {
+ if (n + sizeof "." + 1 > dstsize) {
errno = EMSGSIZE;
return (-1);
}
OpenPOWER on IntegriCloud