From a83183d95f71ebf25d9c63951637932f51c8d8e1 Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Fri, 6 May 2011 20:26:55 +0000 Subject: [PATCH] # 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 --- code/ObjFileParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ObjFileParser.cpp b/code/ObjFileParser.cpp index 43e13825b..17dcf339b 100644 --- a/code/ObjFileParser.cpp +++ b/code/ObjFileParser.cpp @@ -66,7 +66,7 @@ ObjFileParser::ObjFileParser(std::vector &Data,const std::string &strModel m_uiLine(0), m_pIO( io ) { - memset(m_buffer, BUFFERSIZE, 0); + std::fill_n(m_buffer,BUFFERSIZE,0); // Create the model instance to store all the data m_pModel = new ObjFile::Model();