Fixed issue with clang complaining about sprintf being depreciated

This commit is contained in:
slinky55
2022-09-30 00:34:33 -04:00
parent 4b65d65af3
commit e2e45f7a14
6 changed files with 9 additions and 9 deletions

View File

@@ -1228,7 +1228,7 @@ void FBXExporter::WriteObjects ()
"Version", int32_t(101), outstream, binary, indent
);
char layerName[8];
sprintf(layerName, "COLOR_%d", colorChannelIndex);
snprintf(layerName, 8, "COLOR_%d", colorChannelIndex);
FBX::Node::WritePropertyNode(
"Name", (const char*)layerName, outstream, binary, indent
);