From 491be2aa4e0dccd5e91bb50465aa9e18e0d40cd7 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 19 Dec 2021 21:05:31 -0700 Subject: [PATCH] memcpy bug fix --- Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller.cpp b/Controller.cpp index b06edd0..4e81db3 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -208,7 +208,7 @@ void CController::AudiotoCodec2(std::shared_ptr packet) // calculate the first half... c2_32.codec2_encode(m17data, packet->GetAudio()); // and then copy the calculated data to the data_store - memcpy(m17data, data_store[packet->GetModule()], 8); + memcpy(data_store[packet->GetModule()], m17data, 8); } // put the M17 data into the packet packet->SetM17Data(m17data);