Signed-off-by: Norbert Lange <[email protected]>
---
 testsuite/smokey/net_common/smokey_net_server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/net_common/smokey_net_server.c 
b/testsuite/smokey/net_common/smokey_net_server.c
index a0ed52fd9..2e19208e7 100644
--- a/testsuite/smokey/net_common/smokey_net_server.c
+++ b/testsuite/smokey/net_common/smokey_net_server.c
@@ -89,7 +89,7 @@ rtnet_rtcfg_add_client(int fd, const char *hwaddr, const char 
*ipaddr)
        cmd.args.add.ip_addr = ip.s_addr;
        cmd.args.add.timeout = 3000;
        memcpy(cmd.args.add.mac_addr, mac.ether_addr_octet,
-               sizeof(cmd.args.add.mac_addr));
+               sizeof(mac.ether_addr_octet));
 
        check_unix(ioctl(fd, RTCFG_IOC_ADD, &cmd));
 }
-- 
2.17.0


_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to