Added bounds check to strcat.

This commit is contained in:
Leonardo Zide
2025-12-15 11:19:23 -03:00
parent a08dede88b
commit c2db2d8d45
6 changed files with 50 additions and 11 deletions
+1 -1
View File
@@ -2239,7 +2239,7 @@ std::pair<bool, QString> Project::ExportPOVRay(const QString& FileName)
if (sscanf(Line,"%128s%128s%10s", Src, Dst, Flags) != 3)
continue;
strcat(Src, ".dat");
lcstrcat(Src, ".dat");
PieceInfo* Info = Library->FindPiece(Src, nullptr, false, false);
if (!Info)