summaryrefslogtreecommitdiff
path: root/src/headers/ip46-without
diff options
context:
space:
mode:
Diffstat (limited to 'src/headers/ip46-without')
-rw-r--r--src/headers/ip46-without2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/headers/ip46-without b/src/headers/ip46-without
index 7887482..c06106b 100644
--- a/src/headers/ip46-without
+++ b/src/headers/ip46-without
@@ -11,7 +11,7 @@ struct ip46_s
#define ip46_fmt(s, i) ip4_fmt(s, (i)->ip)
#define ip46_scan(s, i) ip4_scan(s, (i)->ip)
#define ip46_scanlist(out, max, s, num) ip4_scanlist((out)->ip, max, s, num)
-#define ip46_from_ip4(i, ip4) (byte_copy((i)->ip, 4, ip4), 1)
+#define ip46_from_ip4(i, ip4) (memmove((i)->ip, (ip4), 4), 1)
#define ip46_from_ip6(i, ip6) (errno = ENOSYS, 0)
#define socket_connect46(s, i, port) socket_connect4(s, (i)->ip, port)