X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4f1ec5ae5fcb55e63412fd99103c72306341eff7..bf689f8729a4f53f9425da557e0919eb9a6d795b:/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp?ds=sidebyside diff --git a/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp b/stargazer/plugins/capture/divert_freebsd/divert_cap.cpp index 0688150d..eb3a9a87 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[packetSize + 14]; while (dc->nonstop) { STG::RawPacket rp; @@ -166,7 +166,7 @@ while (dc->nonstop) if (buffer[12] != 0x8) continue; - memcpy(rp.rawPacket.pckt, &buffer[14], pcktSize); + memcpy(rp.rawPacket, &buffer[14], packetSize); dc->traffCnt->process(rp); }