From 36eeb6c224a6e188ce8029f0a6d76b391e4dd121 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 28 Feb 2017 08:25:23 +0000 Subject: [PATCH] Fix data dumping length bug. --- Modem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modem.cpp b/Modem.cpp index 5565b3874..fffbb86f8 100644 --- a/Modem.cpp +++ b/Modem.cpp @@ -1166,7 +1166,7 @@ RESP_TYPE_MMDVM CModem::getResponse() // CUtils::dump(1U, "Received", m_buffer, m_length); - return RTM_OK; + return RTM_OK; } HW_TYPE CModem::getHWType() const @@ -1337,7 +1337,7 @@ void CModem::dumpSamples() return; } - ::fwrite(m_buffer + 6U, 1U, m_length, fp); + ::fwrite(m_buffer + 6U, 1U, m_length - 6U, fp); ::fclose(fp); }