aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-05-26 12:24:44 +0000
committerDean Camera <[email protected]>2010-05-26 12:24:44 +0000
commit54e69dbee146182a60c258076b8d26e8f5ac752a (patch)
tree03616ce525bc41ec30c269c0b208c5440c720f54 /Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c
parent670413603f528259ade457f27fe97c70736ca754 (diff)
downloadqmk_firmware-54e69dbee146182a60c258076b8d26e8f5ac752a.tar.gz
qmk_firmware-54e69dbee146182a60c258076b8d26e8f5ac752a.zip
Switch to using the correct intptr_t type use where a pointer must be cast to an integer type.
Diffstat (limited to 'Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c')
-rw-r--r--Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c b/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c
index e6377af52c..761c6adf14 100644
--- a/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c
+++ b/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c
@@ -69,7 +69,7 @@ int16_t DHCP_ProcessDHCPPacket(void* IPHeaderInStart, void* DHCPHeaderInStart, v
DHCPHeaderOUT->ElapsedSeconds = 0;
DHCPHeaderOUT->Flags = DHCPHeaderIN->Flags;
DHCPHeaderOUT->YourIP = ClientIPAddress;
- memcpy(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t));
+ memmove(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t));
DHCPHeaderOUT->Cookie = SwapEndian_32(DHCP_MAGIC_COOKIE);
/* Alter the incoming IP packet header so that the corrected IP source and destinations are used - this means that