[systemd-commits] src/libsystemd-bus

Kay Sievers kay at kemper.freedesktop.org
Sat Jan 11 08:42:19 PST 2014


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

New commits:
commit ec260edc1ca85a02f8a9e2e92401333ff986264b
Author: Kay Sievers <kay at vrfy.org>
Date:   Sun Jan 12 00:30:49 2014 +0800

    bus: fix length calculation when serializing SD_BUS_TYPE_SIGNATURE

diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index 05cd512..0c8604c 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -1433,7 +1433,7 @@ int message_append_basic(sd_bus_message *m, char type, const void *p, const void
                                 *stored = (const uint8_t*) a + 4;
 
                 } else if (type == SD_BUS_TYPE_SIGNATURE) {
-                        *(uint8_t*) a = sz - 1;
+                        *(uint8_t*) a = sz - 2;
                         memcpy((uint8_t*) a + 1, p, sz - 1);
 
                         if (stored)



More information about the systemd-commits mailing list