aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bittorrent.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-10 23:34:24 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-10 23:34:24 +0000
commit232629191b294596db475f95435bc857aa5720c5 (patch)
treefb477294dd74bd9634393848f616627baec65f38 /epan/dissectors/packet-bittorrent.c
parent8e5c7e2da97547a939221f24c59b960a3127ee93 (diff)
Fix bugs which caused certain fields to display with the wrong endianness;
Specifically: some proto_tree_add_item() 'encoding' args were incorrect. svn path=/trunk/; revision=39350
Diffstat (limited to 'epan/dissectors/packet-bittorrent.c')
-rw-r--r--epan/dissectors/packet-bittorrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bittorrent.c b/epan/dissectors/packet-bittorrent.c
index c6abd8c9be..ba411dab3f 100644
--- a/epan/dissectors/packet-bittorrent.c
+++ b/epan/dissectors/packet-bittorrent.c
@@ -726,7 +726,7 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto
offset += 4;
length -= 4;
piece_begin = tvb_get_ntohl(tvb, offset);
- proto_tree_add_item(mtree, hf_bittorrent_piece_begin, tvb, offset, 4, piece_begin);
+ proto_tree_add_item(mtree, hf_bittorrent_piece_begin, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
length -= 4;
proto_tree_add_item(mtree, hf_bittorrent_piece_data, tvb, offset, length, ENC_NA);