This commit is contained in:
iceman1001 2018-03-28 13:00:44 +02:00
parent 230c279124
commit 31bc214137

View file

@ -94,6 +94,7 @@ int indala224decode(uint8_t *dest, size_t *size, uint8_t *invert) {
*invert ^= 1; *invert ^= 1;
} }
if (found_size != 224) return -2; if (found_size != 224) return -2;
if (*invert==1 && idx > 0) if (*invert==1 && idx > 0)
for (size_t i = idx-1; i < found_size + idx + 2; i++) for (size_t i = idx-1; i < found_size + idx + 2; i++)
dest[i] ^= 1; dest[i] ^= 1;