From 4a13a5484ae19974a46d3def668aa888d12b8f13 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 25 May 2010 06:14:37 +0000 Subject: Fixed RNDISEthernet demos crashing when calculating checksums for Ethernet/TCP packets of more than ~500 bytes due to an overflow in the checksum calculation loop (thanks to Kevin Malec). Removed string Attributes from the Service Discovery Protocol code to minimise the potential points of failure while the base code is being debugged. --- LUFA/Common/Common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Common') diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h index 68419ce2d..86b84cc2a 100644 --- a/LUFA/Common/Common.h +++ b/LUFA/Common/Common.h @@ -167,7 +167,7 @@ static inline void SwapEndian_n(void* Data, uint8_t Bytes); static inline void SwapEndian_n(void* Data, uint8_t Bytes) { - uint8_t* CurrDataPos = Data; + uint8_t* CurrDataPos = (uint8_t*)Data; while (Bytes) { -- cgit v1.2.3