From da8539cbdb04a9a85a41ff3225a74c2d27fe728b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 12 Oct 2004 08:05:58 +0000 Subject: Correctly update the count of bytes dumped. svn path=/trunk/; revision=12275 --- wiretap/nettl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'wiretap/nettl.c') 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; } -- cgit v1.2.1