mirror of
https://github.com/86Box/86Box.git
synced 2025-01-23 09:42:47 -05:00
Fixed a case of off by one in network/net_ne2000.c.
This commit is contained in:
parent
c17fbfb9c6
commit
b44c214cea
1 changed files with 3 additions and 3 deletions
|
@ -1076,9 +1076,9 @@ nic_init(const device_t *info)
|
|||
mac_oui |= ((int) dev->maclocal[2]);
|
||||
device_set_config_mac("mac", mac);
|
||||
} else {
|
||||
dev->maclocal[1] = (mac_oui >> 16) & 0xff;
|
||||
dev->maclocal[2] = (mac_oui >> 8) & 0xff;
|
||||
dev->maclocal[3] = (mac_oui & 0xff);
|
||||
dev->maclocal[0] = (mac_oui >> 16) & 0xff;
|
||||
dev->maclocal[1] = (mac_oui >> 8) & 0xff;
|
||||
dev->maclocal[2] = (mac_oui & 0xff);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue