summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 20:43:37 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 20:49:32 +0100
commite4bb80a07610e6559aa6d2d763fd0b78634a4b12 (patch)
treefcae0f06b1054aac08445c8b7a140849745e9a5b /src/libsystemd-bus
parentc4ef331782b4c0c615a258d3a4e6c71d8ccc67e1 (diff)
bus: fix rewind logic
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/bus-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index a86cd9a196..8d449c5478 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);
}