[systemd-devel] [PATCH] bus: Fix read_word_le() function

Lukasz Skalski l.skalski at partner.samsung.com
Fri Jan 17 09:11:07 PST 2014


---
 src/libsystemd/bus-message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libsystemd/bus-message.c b/src/libsystemd/bus-message.c
index 0c8604c..1a2039b 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");
-- 
1.8.3.2



More information about the systemd-devel mailing list