diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-10-12 08:05:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-10-12 08:05:58 +0000 |
commit | da8539cbdb04a9a85a41ff3225a74c2d27fe728b (patch) | |
tree | 05c77ca5261fc2325a56ba0fdabefd5d835aa0ac /wiretap | |
parent | 08ba61b48fb21330eb51be71e84c1e7248c2549d (diff) | |
download | wireshark-da8539cbdb04a9a85a41ff3225a74c2d27fe728b.tar.gz wireshark-da8539cbdb04a9a85a41ff3225a74c2d27fe728b.tar.bz2 wireshark-da8539cbdb04a9a85a41ff3225a74c2d27fe728b.zip |
Correctly update the count of bytes dumped.
svn path=/trunk/; revision=12275
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/nettl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c index 44876257b8..f9d8ef7e0f 100644 --- a/wiretap/nettl.c +++ b/wiretap/nettl.c @@ -678,7 +678,6 @@ int nettl_dump_can_write_encap(int encap) sets "*err" to an error code on failure */ gboolean nettl_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err) { - /*guint32 magic;*/ struct nettl_file_hdr file_hdr; size_t nwritten; @@ -704,7 +703,7 @@ gboolean nettl_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err) *err = WTAP_ERR_SHORT_WRITE; return FALSE; } - wdh->bytes_dumped += sizeof(guint32) /* magic */; + wdh->bytes_dumped += sizeof(file_hdr); return TRUE; } |