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