mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use the right byte order for unaligned stores. <blush>.
This commit is contained in:
parent
d0b3489447
commit
5893472b2d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue