summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLukasz Skalski <l.skalski@partner.samsung.com>2014-01-17 18:11:07 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-17 18:34:40 +0100
commit1ffee377ee6d7ad0d365368b5461748f580296d7 (patch)
treec8f2724028ec39c901f4c08a228c31853aee1202 /src/libsystemd
parent47c94a96df29080f8b3a97e7362df4e9c6ba3265 (diff)
bus: Fix read_word_le() function
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/bus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/bus-message.c b/src/libsystemd/bus-message.c
index 0c8604c492..1a2039b8cd 100644
--- a/src/libsystemd/bus-message.c
+++ b/src/libsystemd/bus-message.c
@@ -1935,7 +1935,7 @@ static size_t read_word_le(void *p, size_t sz) {
return le16toh(x.u16);
else if (sz == 4)
return le32toh(x.u32);
- else if (sz == 4)
+ else if (sz == 8)
return le64toh(x.u64);
assert_not_reached("unknown word width");