Fix encoding arg for a proto_tree_add_bitmask() function call.
[obnox/wireshark/wip.git] / editcap.c
index 8481e7367361eeb758ee8d1886ef534ad22c3d5a..e74946ec822a5627091d3aca1d34cf0d349a7f40 100644 (file)
--- a/editcap.c
+++ b/editcap.c
@@ -42,9 +42,7 @@
 
 #include "wtap.h"
 
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#else
+#ifndef HAVE_GETOPT
 #include "wsutil/wsgetopt.h"
 #endif
 
@@ -1444,12 +1442,6 @@ main(int argc, char *argv[])
           }
         }
 
-        if(phdr->caplen > wtap_snapshot_length(wth)) {
-            fprintf(stderr, "Warning: packet %d too big for file type, skipping it...\n", count);
-            count++;
-            continue;
-        }
-
         if (!wtap_dump(pdh, phdr, wtap_pseudoheader(wth), buf, &err)) {
           fprintf(stderr, "editcap: Error writing to %s: %s\n",
                   filename, wtap_strerror(err));