sprintf: replace more sprintf by snprintf.

This commit is contained in:
Kim Kulling
2016-01-04 22:24:25 +01:00
parent c9d00beab8
commit c3d4be1dce
12 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ const aiScene* Importer::ReadFileFromMemory( const void* pBuffer,
// read the file and recover the previous IOSystem
static const size_t BufferSize(Importer::MaxLenHint + 28);
char fbuff[ BufferSize ];
sprintf(fbuff,"%s.%s",AI_MEMORYIO_MAGIC_FILENAME,pHint);
snprintf(fbuff, BufferSize, "%s.%s",AI_MEMORYIO_MAGIC_FILENAME,pHint);
ReadFile(fbuff,pFlags);
SetIOHandler(io);