3ce7d3
diff --git a/bin/sdb_tools/zone2ldap.c b/bin/sdb_tools/zone2ldap.c
3ce7d3
index d56bc56..99c3314 100644
3ce7d3
--- a/bin/sdb_tools/zone2ldap.c
3ce7d3
+++ b/bin/sdb_tools/zone2ldap.c
3ce7d3
@@ -817,11 +817,11 @@ build_dn_from_dc_list (char **dc_list, unsigned int ttl, int flag, char *zone)
3ce7d3
     }
3ce7d3
 
3ce7d3
 
3ce7d3
-      strlcat (dn, tmp, sizeof (dn));
3ce7d3
+      strncat (dn, tmp, sizeof (dn) - strlen (dn));
3ce7d3
     }
3ce7d3
 
3ce7d3
   sprintf (tmp, "dc=%s", dc_list[0]);
3ce7d3
-  strlcat (dn, tmp, sizeof (dn));
3ce7d3
+  strncat (dn, tmp, sizeof (dn) - strlen (dn));
3ce7d3
 
3ce7d3
 	    fflush(NULL);
3ce7d3
   return dn;