aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wiretap/nettl.c3
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;
}