aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff_zlib.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-12-07 19:36:32 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2014-12-07 18:53:41 +0000
commita68a3daa019689fef6bbdfcc62dbee24fdf35d1b (patch)
treed775920a2371481335159408cd4122a4cfe87e0f /epan/tvbuff_zlib.c
parente456dec48be76ffd403bb6259537c441c0bac42e (diff)
make our counting a bit clearer
Change-Id: Ie64573f5a0b6e921a5011e487eea8e55f72b9a0b Reviewed-on: https://code.wireshark.org/review/5653 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/tvbuff_zlib.c')
-rw-r--r--epan/tvbuff_zlib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/tvbuff_zlib.c b/epan/tvbuff_zlib.c
index d586f5167b..17093222eb 100644
--- a/epan/tvbuff_zlib.c
+++ b/epan/tvbuff_zlib.c
@@ -197,9 +197,11 @@ tvb_uncompress(tvbuff_t *tvb, const int offset, int comprlen)
c++;
flags = *c;
+ c++;
- /* Skip past the MTIME, XFL, and OS fields. */
- c += 7;
+ /* Skip past the MTIME (4 bytes),
+ XFL, and OS fields (1 byte each). */
+ c += 6;
if (flags & (1 << 2)) {
/* An Extra field is present. */