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

@@ -298,7 +298,7 @@ void MDLImporter::SizeCheck(const void *szPos, const char *szFile, unsigned int
}
char szBuffer[1024];
::sprintf(szBuffer, "Invalid MDL file. The file is too small "
::snprintf(szBuffer, 1024, "Invalid MDL file. The file is too small "
"or contains invalid data (File: %s Line: %u)",
szFilePtr, iLine);