summaryrefslogtreecommitdiff
path: root/dxr3syncbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3syncbuffer.c')
-rw-r--r--dxr3syncbuffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dxr3syncbuffer.c b/dxr3syncbuffer.c
index 33843a2..db6475f 100644
--- a/dxr3syncbuffer.c
+++ b/dxr3syncbuffer.c
@@ -59,9 +59,8 @@ void cFixedLengthFrame::CopyFrame(const uint8_t* pStart, int length)
if (length > m_length) {
delete[] m_pData;
m_pData = new uint8_t[length];
- m_length = length;
}
- m_count = length;
+ m_length = length;
memcpy((void*) m_pData, (void*) pStart, length);
}
@@ -74,7 +73,7 @@ uint8_t* cFixedLengthFrame::GetData(void)
// ==================================
int cFixedLengthFrame::GetCount(void)
{
- return m_count;
+ return m_length;
}
// ==================================