Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 0485a10b92a3d6563119d21228206da3 > files > 4

bind-9.10.5.P3-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;