summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6dns/s6dns_engine.c')
-rw-r--r--src/libs6dns/s6dns_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6dns/s6dns_engine.c b/src/libs6dns/s6dns_engine.c
index baf93b0..8891e8e 100644
--- a/src/libs6dns/s6dns_engine.c
+++ b/src/libs6dns/s6dns_engine.c
@@ -381,7 +381,7 @@ int s6dns_engine_init_r (s6dns_engine_t *dt, s6dns_ip46list_t const *servers, ui
h.counts.qd = 1 ;
uint16_pack_big(dt->sa.s, qlen + 16) ;
s6dns_message_header_pack(dt->sa.s + 2, &h) ;
- byte_copy(dt->sa.s + 14, qlen, q) ;
+ memcpy(dt->sa.s + 14, q, qlen) ;
uint16_pack_big(dt->sa.s + 14 + qlen, qtype) ;
uint16_pack_big(dt->sa.s + 16 + qlen, S6DNS_C_IN) ;
if (qlen > 496) dt->flagtcp = 1 ;