Use le32dec() instead of le32toh() because we are not guaranteed to have

a word aligned input.
This commit is contained in:
Poul-Henning Kamp 2003-05-05 07:22:35 +00:00
parent b9275c8fc6
commit c0c0300f51

View File

@ -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