diff --git a/code/IOStreamBuffer.h b/code/IOStreamBuffer.h index 9d87942df..8fb58e548 100644 --- a/code/IOStreamBuffer.h +++ b/code/IOStreamBuffer.h @@ -230,8 +230,6 @@ template inline bool IOStreamBuffer::getNextLine( std::vector &buffer ) { buffer.resize( m_cacheSize ); - ::memset( &buffer[ 0 ], '\n', m_cacheSize ); - if ( m_cachePos == m_cacheSize || 0 == m_filePos ) { if ( !readNextBlock() ) { return false; @@ -248,6 +246,7 @@ bool IOStreamBuffer::getNextLine( std::vector &buffer ) { } } } + buffer[ i ] = '\n'; m_cachePos++; return true; diff --git a/test/unit/utTypes.cpp b/test/unit/utTypes.cpp index 47c39f989..875f66240 100644 --- a/test/unit/utTypes.cpp +++ b/test/unit/utTypes.cpp @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include using namespace Assimp; + class utTypes : public ::testing::Test { // empty };