diff options
Diffstat (limited to 'epan/dissectors/packet-rtps.c')
-rw-r--r-- | epan/dissectors/packet-rtps.c | 2 |
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) { |