diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-11-05 22:46:44 +0000 |
commit | 59d6c8ea33b703a4282ac6694f2797202b64dfcb (patch) | |
tree | a4abb83c0c20eafb12ab250bcf7f32f74f281b44 /epan/dissectors/packet-frame.c | |
parent | ed837bc7a517040020da2717b392a0ca086e276a (diff) |
change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!
svn path=/trunk/; revision=19814
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r-- | epan/dissectors/packet-frame.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c index 1d8b4ef965..65d50b3249 100644 --- a/epan/dissectors/packet-frame.c +++ b/epan/dissectors/packet-frame.c @@ -252,9 +252,9 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) } if (show_file_off) { - proto_tree_add_int_format(fh_tree, hf_frame_file_off, tvb, + proto_tree_add_int64_format(fh_tree, hf_frame_file_off, tvb, 0, 0, pinfo->fd->file_off, - "File Offset: %ld (0x%lx)", + "File Offset: %lld (0x%llx)", pinfo->fd->file_off, pinfo->fd->file_off); } @@ -477,7 +477,7 @@ proto_register_frame(void) "", HFILL }}, { &hf_frame_file_off, - { "File Offset", "frame.file_off", FT_INT32, BASE_DEC, NULL, 0x0, + { "File Offset", "frame.file_off", FT_INT64, BASE_DEC, NULL, 0x0, "", HFILL }}, { &hf_frame_marked, |