Correctly update the count of bytes dumped.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Oct 2004 08:05:58 +0000 (08:05 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Oct 2004 08:05:58 +0000 (08:05 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12275 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/nettl.c

index 44876257b8f4985fcfa90fb551494f96603062e0..f9d8ef7e0f99a002f8c0ace1faf77ca7d6983a8f 100644 (file)
@@ -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;
 }