mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114706
@ -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