Browse Source

# fix transposed memset() parameters -> replace by fill_n

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@978 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 years ago
parent
commit
a83183d95f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/ObjFileParser.cpp

+ 1 - 1
code/ObjFileParser.cpp

@@ -66,7 +66,7 @@ ObjFileParser::ObjFileParser(std::vector<char> &Data,const std::string &strModel
 	m_uiLine(0),
 	m_uiLine(0),
 	m_pIO( io )
 	m_pIO( io )
 {
 {
-	memset(m_buffer, BUFFERSIZE, 0);
+	std::fill_n(m_buffer,BUFFERSIZE,0);
 
 
 	// Create the model instance to store all the data
 	// Create the model instance to store all the data
 	m_pModel = new ObjFile::Model();
 	m_pModel = new ObjFile::Model();