aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/file-png.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-22 17:19:23 -0700
committerEvan Huus <eapache@gmail.com>2015-06-23 00:19:41 +0000
commit958cef5d68f4e18fc648a0bbb30408eb206fb0ef (patch)
treef49f047e15a9bc811499efee611c99118ecd1e36 /epan/dissectors/file-png.c
parent67ab8a059c489022aebe0e27d1f937c7b6abad06 (diff)
Remove more deprecated tvb_length
Change-Id: Iac23a6c804ad3720d37186559477909b2ff33eb2 Reviewed-on: https://code.wireshark.org/review/9042 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/file-png.c')
-rw-r--r--epan/dissectors/file-png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/file-png.c b/epan/dissectors/file-png.c
index 496e6c67c1..fb3112043c 100644
--- a/epan/dissectors/file-png.c
+++ b/epan/dissectors/file-png.c
@@ -440,7 +440,7 @@ dissect_png(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *da
/* http://libpng.org/pub/png/spec/1.2/PNG-Structure.html#PNG-file-signature */
static const guint8 magic[8] = { 137, 80, 78, 71, 13, 10, 26, 10 };
- if (tvb_length(tvb) < 20)
+ if (tvb_captured_length(tvb) < 20)
return 0;
if (tvb_memeql(tvb, 0, magic, sizeof(magic)) != 0)
return 0;