Use the right byte order for unaligned stores. <blush>.
This commit is contained in:
parent
d0b3489447
commit
5893472b2d
@ -52,7 +52,7 @@ __unaligned_store(u_char *p, u_long val, int size)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
p[i] = val >> (i * 8);
|
||||
p[i] = val >> ((size - i - 1) * 8);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user