summaryrefslogtreecommitdiff
path: root/dxr3syncbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3syncbuffer.c')
-rw-r--r--dxr3syncbuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c
index f2fe80f..e7544ec 100644
--- a/dxr3syncbuffer.c
+++ b/dxr3syncbuffer.c
@@ -54,8 +54,8 @@ cFixedLengthFrame::~cFixedLengthFrame()
// ! setup our frame
void cFixedLengthFrame::Init(uint32_t lenght)
{
- m_length = length;
- m_pData = new uint8_t[length];
+ m_length = lenght;
+ m_pData = new uint8_t[lenght];
// allocation ok?
if (!m_pData)
@@ -125,7 +125,7 @@ cDxr3SyncBuffer::cDxr3SyncBuffer(int frameCount, int frameLength, cDxr3Interface
// init our new m_pBuffer;
for (int i = 0; i < frameCount; i++)
{
- m_pBuffer[i].Init(frameLenght);
+ m_pBuffer[i].Init(frameLength);
}
// set some default values