aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanjo Martin <juanjo@rti.com>2016-03-30 16:53:17 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2016-03-30 19:40:32 +0000
commit3f6381fe2ab786ea564dc4db6260e3b281c3399d (patch)
treeae5eeb38ff8a9069a846455a84aefeea5ffeb57d
parent0e8e4914faa9471044dea6b91eaf2029847cc34e (diff)
RTPS: Fixed ACKNACK mask processing
Change-Id: I81a83638c2318ba0d806263dbf692cd19b30ce9b Reviewed-on: https://code.wireshark.org/review/14707 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-rtps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c
index 4437840898..7c8dd73fb2 100644
--- a/epan/dissectors/packet-rtps.c
+++ b/epan/dissectors/packet-rtps.c
@@ -2778,7 +2778,7 @@ static int rtps_util_add_bitmap(proto_tree *tree,
/* removes all the ending '0' */
last_one = strrchr(wmem_strbuf_get_str(temp_buff), '1');
if (last_one) {
- wmem_strbuf_truncate(temp_buff, (gsize) (last_one - wmem_strbuf_get_str(temp_buff)));
+ wmem_strbuf_truncate(temp_buff, (gsize) (last_one - wmem_strbuf_get_str(temp_buff)) + 1);
}
if (wmem_strbuf_get_len(temp_buff) > 0) {