X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/611c8051a2ae58a1c306675c8250865e12563834..c040d1767a18cb26020b14a6408796502e9e4135:/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp diff --git a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index 03ecef01..28984686 100644 --- a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp +++ b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp @@ -157,7 +157,7 @@ pthread_sigmask(SIG_BLOCK, &signalSet, NULL); DIVERT_CAP * dc = static_cast(d); dc->isRunning = true; -char buffer[pcktSize + 14]; +char buffer[STG::packetSize + 14]; while (dc->nonstop) { STG::RawPacket rp; @@ -166,7 +166,7 @@ while (dc->nonstop) if (buffer[12] != 0x8) continue; - memcpy(rp.rawPacket, &buffer[14], packetSize); + memcpy(&rp.rawPacket, &buffer[14], STG::packetSize); dc->traffCnt->process(rp); }