Sophie

Sophie

distrib > Mageia > 6 > x86_64 > by-pkgid > dde27df0c3aeb3f1197daec21fdf5ae9 > files > 2

bind-9.10.8.P1-1.mga6.src.rpm

--- bind-9.10.4-P1/contrib/sdb/ldap/zone2ldap.c~	2016-06-02 14:26:58.550911525 -0400
+++ bind-9.10.4-P1/contrib/sdb/ldap/zone2ldap.c	2016-06-02 14:53:09.908970201 -0400
@@ -708,11 +708,11 @@ build_dn_from_dc_list (char **dc_list, u
     }
 
 
-      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;