Merge pull request #988 from Azaezel/alpha41/getDirectoryList

fix getDirectoryList
This commit is contained in:
Brian Roberts 2023-03-11 13:24:28 -06:00 committed by GitHub
commit 6cb34ab3e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -489,9 +489,7 @@ DefineEngineFunction(getDirectoryList, String, ( const char* path, S32 depth ),
// Append a trailing backslash if it's not present already.
if (fullpath[dStrlen(fullpath) - 1] != '/')
{
S32 pos = dStrlen(fullpath);
fullpath[pos - 1] = '/';
fullpath[pos] = '\0';
dStrcat(fullpath, "/\0", 1024);
}
// Dump the directories.