diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-16 22:31:07 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-11-16 22:31:07 +0000 |
commit | 004220fb63d9c49f5ba389a7d80d0bbde14ba11f (patch) | |
tree | 21410e677f84ba94ab90afc1dab7c4866c9596cc /epan/dissectors/packet-h223.c | |
parent | 0e029166ba5f894893c06fba315e1a7340eef156 (diff) | |
download | wireshark-004220fb63d9c49f5ba389a7d80d0bbde14ba11f.tar.gz wireshark-004220fb63d9c49f5ba389a7d80d0bbde14ba11f.tar.bz2 wireshark-004220fb63d9c49f5ba389a7d80d0bbde14ba11f.zip |
Exporting/importing variables cause problems, so create function to do bitswaping.
svn path=/trunk/; revision=53374
Diffstat (limited to 'epan/dissectors/packet-h223.c')
-rw-r--r-- | epan/dissectors/packet-h223.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index 078ee5fd48..0463013763 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -1370,9 +1370,8 @@ dissect_h223_bitswapped (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint i; len = tvb_length(tvb); - datax = (guint8 *)wmem_alloc(pinfo->pool, len); - for( i=0; i<len; i++) - datax[i]=BIT_SWAP(tvb_get_guint8(tvb,i)); + datax = tvb_memdup(pinfo->pool, tvb, 0, len); + bit_swap_buf_inplace(datax, len); /* * Add the reversed tvbuff to the list of tvbuffs to which |