Fix masking done in Mask alignment preamble

This commit is contained in:
Antti Risteli
2016-11-20 19:43:27 +01:00
committed by Tom Atkinson
parent 18eaedec27
commit aa4d7b18a1
+1 -1
View File
@@ -121,7 +121,7 @@ protected:
/* Alignment preamble */
size_t index;
for (index = 0; index < length && (reinterpret_cast<size_t>(from) & 0x07); index++)
*to++ ^= mask[index % 4];
*to++ = *from++ ^ mask[index % 4];
length -= index;
if (!length)
return;