Merge pull request #141 from lioncash/bounds

Memset the ringbuffer in m_fs_config by the size of the actual ringbuffer struct, not FsRingBufferConfig's size..
This commit is contained in:
Alexandro Sánchez Bach 2014-03-30 00:18:02 +01:00
commit ae5d06d4be

View File

@ -33,12 +33,12 @@ struct FsRingBufferConfig
, m_alloc_mem_size(0) , m_alloc_mem_size(0)
, m_current_addr(0) , m_current_addr(0)
{ {
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig)); memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
} }
~FsRingBufferConfig() ~FsRingBufferConfig()
{ {
memset(&m_ring_buffer, 0, sizeof(FsRingBufferConfig)); memset(&m_ring_buffer, 0, sizeof(FsRingBuffer));
} }
} m_fs_config; } m_fs_config;