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