ref: 0cf8a0c4a8fb8a13ed46e1007dc65124248e5cab
parent: 1f367e15dd5f42f1969ca9f681811e62bfe76316
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jun 3 16:31:48 EDT 2018
ip/ipconfig: use ipmove() instead of memmove()
--- a/sys/src/cmd/ip/ipconfig/dhcp.c
+++ b/sys/src/cmd/ip/ipconfig/dhcp.c
@@ -547,13 +547,13 @@
n = optgetp9addrs(vopts, OP9ipaddr, taddr, 1);
if (n > 0)
- memmove(conf.laddr, taddr, IPaddrlen);
+ ipmove(conf.laddr, taddr);
n = optgetp9addrs(vopts, OP9ipmask, taddr, 1);
if (n > 0)
- memmove(conf.mask, taddr, IPaddrlen);
+ ipmove(conf.mask, taddr);
n = optgetp9addrs(vopts, OP9ipgw, taddr, 1);
if (n > 0)
- memmove(conf.gaddr, taddr, IPaddrlen);
+ ipmove(conf.gaddr, taddr);
DEBUG("new ipaddr=%I new ipmask=%M new ipgw=%I",
conf.laddr, conf.mask, conf.gaddr);
}