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>
This commit is contained in:
Martin Kaiser 2014-12-07 19:36:32 +01:00
parent e456dec48b
commit a68a3daa01
1 changed files with 4 additions and 2 deletions

View File

@ -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. */