Fix seek reading by adding the size of the block length at the end of the

block to the data offset.


svn path=/trunk/; revision=24083
This commit is contained in:
Stephen Fisher 2008-01-14 05:31:38 +00:00
parent 105a6009bd
commit 1caef26fa4
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ pcapng_read(wtap *wth, int *err, gchar **err_info,
wth->phdr.ts.nsecs = wblock.data.packet.ts_low; /* convert here? */
/*g_warning("Read length: %u Packet length: %u", bytes_read, wth->phdr.caplen);*/
wth->data_offset += bytes_read;
wth->data_offset += bytes_read + 4;
return TRUE;
} else {
return FALSE;