summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-01-08 22:58:07 +0100
committerPeter Wu <lekensteyn@gmail.com>2013-11-30 12:44:39 +0100
commit2f86eff31139e85659d8324dcb537b1569c4a1ac (patch)
treea52b0b33a5f6b699719b2563383f1404d696748b
parent43d3cf05642315feda151b2246d10b2e3c0fe148 (diff)
downloadwireshark-proto-alot.tar.gz
Correctly determine length of a stringproto-alot
-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) \
({ \