summaryrefslogtreecommitdiff
path: root/plugins/alot/packet-alot.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alot/packet-alot.c')
-rw-r--r--plugins/alot/packet-alot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/alot/packet-alot.c b/plugins/alot/packet-alot.c
index e61c38e0b6..af3538d6a6 100644
--- a/plugins/alot/packet-alot.c
+++ b/plugins/alot/packet-alot.c
@@ -80,7 +80,8 @@ parse_message_payload(proto_tree *mtree, tvbuff_t *tvb, int msgtype, gint pos,
M_ADD(msglen - pos, "MALFORMED: String end not found, pos%i len%i", pos, msglen - pos); \
return; \
} \
- M_ADD(strzsize, name ": %s", tvb_format_text(tvb, pos, strzsize)); \
+ strzsize++; \
+ M_ADD(strzsize, name ": %s", tvb_format_text(tvb, pos, strzsize - 1)); \
})
#define M_B8(name) \
({ \