diff options
Diffstat (limited to 'src/3rdparty/assimp/code/AssimpCExport.cpp')
-rw-r--r-- | src/3rdparty/assimp/code/AssimpCExport.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/3rdparty/assimp/code/AssimpCExport.cpp b/src/3rdparty/assimp/code/AssimpCExport.cpp index c5f26fc47..b8d3264a1 100644 --- a/src/3rdparty/assimp/code/AssimpCExport.cpp +++ b/src/3rdparty/assimp/code/AssimpCExport.cpp @@ -3,7 +3,8 @@ Open Asset Import Library (assimp) --------------------------------------------------------------------------- -Copyright (c) 2006-2016, assimp team +Copyright (c) 2006-2017, assimp team + All rights reserved. @@ -44,8 +45,9 @@ Assimp C export interface. See Exporter.cpp for some notes. */ #ifndef ASSIMP_BUILD_NO_EXPORT + #include "CInterfaceIOWrapper.h" -#include "SceneCombiner.h" +#include <assimp/SceneCombiner.h> #include "ScenePrivate.h" #include <assimp/Exporter.hpp> @@ -70,11 +72,11 @@ ASSIMP_API const aiExportFormatDesc* aiGetExportFormatDescription( size_t index) } aiExportFormatDesc *desc = new aiExportFormatDesc; - desc->description = new char[ strlen( orig->description ) + 1 ]; + desc->description = new char[ strlen( orig->description ) + 1 ](); ::strncpy( (char*) desc->description, orig->description, strlen( orig->description ) ); - desc->fileExtension = new char[ strlen( orig->fileExtension ) + 1 ]; + desc->fileExtension = new char[ strlen( orig->fileExtension ) + 1 ](); ::strncpy( ( char* ) desc->fileExtension, orig->fileExtension, strlen( orig->fileExtension ) ); - desc->id = new char[ strlen( orig->id ) + 1 ]; + desc->id = new char[ strlen( orig->id ) + 1 ](); ::strncpy( ( char* ) desc->id, orig->id, strlen( orig->id ) ); return desc; |