1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-11 23:52:54 +00:00

Copy the right size into the destination.

Fixes !45.
This commit is contained in:
Olaf Seibert 2020-03-28 16:16:57 +01:00
parent fcf812e4d7
commit f5e506cc10

View File

@ -1208,7 +1208,7 @@ arp_req(struct in_addr *ipa)
arp.arp.arp_op = htons(ARPOP_REQUEST); /* Type REQUEST */
ea_set(arp.arp.arp_sha, &ihost_ea); /* Sender hdw addr */
memcpy((char *)arp.arp.arp_spa, /* Sender IP addr */
(char *)&ihost_ip, sizeof(arp.arp.arp_sha));
(char *)&ihost_ip, sizeof(arp.arp.arp_spa));
arpbuild = TRUE;
}