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