summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint32_pack.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-12-05 00:02:44 +0000
committerLaurent Bercot <ska@appnovation.com>2022-12-05 00:02:44 +0000
commitf3ea9c65b9414f85427a4505932acd7dae409ea6 (patch)
treee2b7bec5495eac2c6e4e3105619d2c3bee1b8a7c /src/libstddjb/uint32_pack.c
parent6ebac888d57003697dc90e88effb8c58a54069b6 (diff)
downloadskalibs-f3ea9c65b9414f85427a4505932acd7dae409ea6.tar.xz
bugfix: uint16_pack and uint16_pack for big-endian
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/uint32_pack.c')
-rw-r--r--src/libstddjb/uint32_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/uint32_pack.c b/src/libstddjb/uint32_pack.c
index b38bfeb..9cc7e2a 100644
--- a/src/libstddjb/uint32_pack.c
+++ b/src/libstddjb/uint32_pack.c
@@ -7,6 +7,6 @@
void uint32_pack (char *s, uint32_t u)
{
- uint32_littlep(u) ;
+ uint32_littlep(&u) ;
memcpy(s, &u, sizeof(uint32_t)) ;
}