diff --git a/Changelog b/Changelog index 60844bc1..ae1bfc2b 100644 --- a/Changelog +++ b/Changelog @@ -23,12 +23,14 @@ Thanks Fabrice Fontaine * PR #224: Portable executable progs don't underlink to libldns Thanks Ørjan Malde - * PR #216 Update declaration for function with no argument + * PR #216: Update declaration for function with no argument Thanks Ed Maste - * PR #214 fix the build in FreeBSD's base system + * PR #214: fix the build in FreeBSD's base system Thanks Pierre Pronchery and Dag-Erling Smørgrav - * PR #206 improve 'next-label' algorithm in ldns-walk + * PR #206: improve 'next-label' algorithm in ldns-walk Thanks Jelte Jansen + * PR #205: Add functions to extract RFC 8914 extended errors + Thanks Roland van Rijswijk-Deij 1.8.3 2022-08-15 * bugfix #183: Assertion failure with OPT record without rdata. diff --git a/edns.c b/edns.c index 87ca547e..18615ec2 100644 --- a/edns.c +++ b/edns.c @@ -74,7 +74,7 @@ ldns_edns_ede_get_text(const ldns_edns_option* edns, char **ede_text) *ede_text = (char*) malloc((edns->_size - 1) * sizeof(char)); memset(*ede_text, 0, edns->_size - 1); - memcpy(*ede_text, &edns->_data[2], edns->_size - 2); + memcpy(*ede_text, &((char*)edns->_data)[2], edns->_size - 2); } return LDNS_STATUS_OK;