From e4bb80a07610e6559aa6d2d763fd0b78634a4b12 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 20:43:37 +0100 Subject: [PATCH] bus: fix rewind logic --- src/libsystemd-bus/bus-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index a86cd9a19..8d449c547 100644 --- a/src/libsystemd-bus/bus-message.c +++ b/src/libsystemd-bus/bus-message.c @@ -4152,7 +4152,7 @@ _public_ int sd_bus_message_rewind(sd_bus_message *m, int complete) { } c->offset_index = 0; - c->item_size = c->n_offsets > 0 ? c->offsets[0] : c->end; + c->item_size = (c->n_offsets > 0 ? c->offsets[0] : c->end) - c->begin; return !isempty(c->signature); } -- 2.30.2