Updates from latest cppcheck
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Ia9dd43ce762f613e35d07f3028a918bba6ac36ce
diff --git a/src/chip_data/hei_chip_data_stream.hpp b/src/chip_data/hei_chip_data_stream.hpp
index 1ca28af..cb3ed7d 100644
--- a/src/chip_data/hei_chip_data_stream.hpp
+++ b/src/chip_data/hei_chip_data_stream.hpp
@@ -71,7 +71,8 @@
HEI_ASSERT((iv_currentIndex + i_size) <= iv_bufferSize);
// Copy the buffer.
- memcpy(o_buf, (char*)iv_buffer + iv_currentIndex, i_size);
+ memcpy(o_buf, static_cast<const char*>(iv_buffer) + iv_currentIndex,
+ i_size);
// Increment the curent index for the next piece of data.
iv_currentIndex += i_size;