Merge pull request #1060 from assimp/issue_1059

Issue 1059
This commit is contained in:
Kim Kulling
2016-11-08 21:31:47 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -230,8 +230,6 @@ template<class T>
inline
bool IOStreamBuffer<T>::getNextLine( std::vector<T> &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<T>::getNextLine( std::vector<T> &buffer ) {
}
}
}
buffer[ i ] = '\n';
m_cachePos++;
return true;