diff --git a/src/common/pcap2norm.cpp b/src/common/pcap2norm.cpp index e2505e1..0a8888f 100644 --- a/src/common/pcap2norm.cpp +++ b/src/common/pcap2norm.cpp @@ -105,7 +105,7 @@ int main(int argc, char* argv[]) else { memcpy(ethBuffer, pktData, numBytes); - ProtoPktETH ethPkt((UINT32*)ethBuffer, maxBytes); + ProtoPktETH ethPkt(ethBuffer, maxBytes); if (!ethPkt.InitFromBuffer(hdr.len)) { fprintf(stderr, "pcap2norm error: invalid Ether frame in pcap file\n");