990ae7c669
Imports commit 7e1db866748aef3c07657e0761b19aec6de9bf6f
19 lines
533 B
Diff
19 lines
533 B
Diff
diff --git a/bin/sdb_tools/zone2ldap.c b/bin/sdb_tools/zone2ldap.c
|
|
index d56bc56..99c3314 100644
|
|
--- a/bin/sdb_tools/zone2ldap.c
|
|
+++ b/bin/sdb_tools/zone2ldap.c
|
|
@@ -817,11 +817,11 @@ build_dn_from_dc_list (char **dc_list, unsigned int ttl, int flag, char *zone)
|
|
}
|
|
|
|
|
|
- strlcat (dn, tmp, sizeof (dn));
|
|
+ strncat (dn, tmp, sizeof (dn) - strlen (dn));
|
|
}
|
|
|
|
sprintf (tmp, "dc=%s", dc_list[0]);
|
|
- strlcat (dn, tmp, sizeof (dn));
|
|
+ strncat (dn, tmp, sizeof (dn) - strlen (dn));
|
|
|
|
fflush(NULL);
|
|
return dn;
|