summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint16_pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/uint16_pack.c')
-rw-r--r--src/libstddjb/uint16_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/uint16_pack.c b/src/libstddjb/uint16_pack.c
index 353c421..0b2f8df 100644
--- a/src/libstddjb/uint16_pack.c
+++ b/src/libstddjb/uint16_pack.c
@@ -7,6 +7,6 @@
void uint16_pack (char *s, uint16_t u)
{
- uint16_littlep(u) ;
+ uint16_littlep(&u) ;
memcpy(s, &u, sizeof(uint16_t)) ;
}