Fix void pointer arithmetic in the low level RNDIS demo.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:32:24 +0000 (22:32 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 22 Dec 2015 11:32:24 +0000 (22:32 +1100)
Demos/Device/LowLevel/RNDISEthernet/Lib/ProtocolDecoders.c

index cc4e961..e1d41eb 100644 (file)
@@ -244,7 +244,7 @@ void DecodeUDPHeader(void* InDataStart)
 void DecodeDHCPHeader(void* InDataStart)
 {
        #if !defined(NO_DECODE_DHCP)
-       uint8_t* DHCPOptions = (InDataStart + sizeof(DHCP_Header_t));
+       uint8_t* DHCPOptions = ((uint8_t*)InDataStart + sizeof(DHCP_Header_t));
 
        printf_P(PSTR("     \\\r\n      DHCP\r\n"));