Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 3a948f1c7a9d786c5cf7e7b61263eb4c > files > 4

bind-9.10.6.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;