summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ed4725)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
}
dns_conf_len = strlen(dns_conf);
}
dns_conf_len = strlen(dns_conf);
- buf = talloc_realloc(network, buf, char, len + dns_conf_len);
+ buf = talloc_realloc(network, buf, char, len + dns_conf_len + 1);
memcpy(buf + len, dns_conf, dns_conf_len);
len += dns_conf_len;
memcpy(buf + len, dns_conf, dns_conf_len);
len += dns_conf_len;
modified = true;
talloc_free(dns_conf);
modified = true;
talloc_free(dns_conf);