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