aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-25 06:14:37 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-25 06:14:37 +0000
commit4a13a5484ae19974a46d3def668aa888d12b8f13 (patch)
tree79f288666aea4a6f2298bb449bf355daaa5e6ce5 /LUFA/Common
parent8f3d4e69c3ccc88f0572a90a367eeaa98e3675c2 (diff)
downloadlufa-4a13a5484ae19974a46d3def668aa888d12b8f13.tar.gz
lufa-4a13a5484ae19974a46d3def668aa888d12b8f13.tar.bz2
lufa-4a13a5484ae19974a46d3def668aa888d12b8f13.zip
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.
Diffstat (limited to 'LUFA/Common')
-rw-r--r--LUFA/Common/Common.h2
1 files changed, 1 insertions, 1 deletions
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)
{