2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

[master] cast char *

This commit is contained in:
Evan Hunt
2017-09-13 22:03:56 -07:00
parent 9b729a06b0
commit 077d9d2838

View File

@@ -1388,7 +1388,7 @@ dns_zone_getdbtype(dns_zone_t *zone, char ***argv, isc_mem_t *mctx) {
tmp2 = mem; tmp2 = mem;
tmp2 += (zone->db_argc + 1) * sizeof(char *); tmp2 += (zone->db_argc + 1) * sizeof(char *);
for (i = 0; i < zone->db_argc; i++) { for (i = 0; i < zone->db_argc; i++) {
remaining = (size_t)(mem - tmp2); remaining = size - (tmp2 - (char *) mem);
*tmp++ = tmp2; *tmp++ = tmp2;
strlcpy(tmp2, zone->db_argv[i], remaining); strlcpy(tmp2, zone->db_argv[i], remaining);
tmp2 += strlen(tmp2) + 1; tmp2 += strlen(tmp2) + 1;