Use le32dec() instead of le32toh() because we are not guaranteed to have
a word aligned input.
This commit is contained in:
parent
b9275c8fc6
commit
c0c0300f51
@ -78,7 +78,7 @@ Decode (u_int32_t *output, const unsigned char *input, unsigned int len)
|
||||
const u_int32_t *ip = (const u_int32_t *)input;
|
||||
|
||||
for (i = 0; i < len / 4; i++)
|
||||
output[i] = le32toh(ip[i]);
|
||||
output[i] = le32dec(&ip[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user