Fix data dumping length bug.

This commit is contained in:
Jonathan Naylor
2017-02-28 08:25:23 +00:00
committed by GitHub
parent 1dbaec9331
commit 36eeb6c224

View File

@@ -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);
}