Skip to content

Commit 7860a44

Browse files
committed
fix: Restore GeneralsMD commented path logic in WHeightMapEdit
1 parent 797a340 commit 7860a44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GeneralsMD/Code/Tools/WorldBuilder/src/WHeightMapEdit.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ void WorldHeightMapEdit::loadDirectoryOfImages(const char *pFilePath)
434434
FilenameList::iterator it = filenameList.begin();
435435
do {
436436
AsciiString filename = *it;
437-
snprintf(fileBuf, ARRAY_SIZE(fileBuf), "%s%s", dirBuf, filename.str());
437+
//strcpy(fileBuf, dirBuf);
438+
strlcpy(fileBuf, filename.str(), ARRAY_SIZE(fileBuf));
438439
loadBitmap(fileBuf, filename.str());
439440

440441
++it;

0 commit comments

Comments
 (0)