diff options
author | Anders Broman <anders.broman@ericsson.com> | 2007-10-15 18:39:58 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2007-10-15 18:39:58 +0000 |
commit | 721796617d2f4353eef25b1e08945951917c4e65 (patch) | |
tree | cf6c57fe8c03dc5f58ca67697fef27d91d116380 /plugins/ethercat/packet-ioraw.c | |
parent | 4644ce72634f90e866519faf0a06aca2f7adee12 (diff) |
From Peter Johansson:
addressing the compilation problems
svn path=/trunk/; revision=23188
Diffstat (limited to 'plugins/ethercat/packet-ioraw.c')
-rw-r--r-- | plugins/ethercat/packet-ioraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ethercat/packet-ioraw.c b/plugins/ethercat/packet-ioraw.c index 07327e0134..db1f618d06 100644 --- a/plugins/ethercat/packet-ioraw.c +++ b/plugins/ethercat/packet-ioraw.c @@ -89,8 +89,8 @@ static void dissect_ioraw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ioraw_tree = proto_item_add_subtree(ti, ett_ioraw); proto_item_append_text(ti,": %s",szText); - proto_tree_add_item(ioraw_tree, hf_ioraw_header, tvb, offset, sizeof(IoRawParserHDR), TRUE); - offset+=sizeof(IoRawParserHDR); + proto_tree_add_item(ioraw_tree, hf_ioraw_header, tvb, offset, IoRawParserHDR_Len, TRUE); + offset+=IoRawParserHDR_Len; proto_tree_add_item(ioraw_tree, hf_ioraw_data, tvb, offset, ioraw_length - offset, TRUE); } |