summaryrefslogtreecommitdiff
path: root/indra/llfilesystem/tests/lldir_test.cpp
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-08-22 13:13:03 -0400
committerRye <rye@alchemyviewer.org>2025-08-22 13:13:03 -0400
commit3f65a4bfec71a9950a541f9e6195a572a0622b48 (patch)
tree6e92ea22f02b2697640070139b842f7c7c212078 /indra/llfilesystem/tests/lldir_test.cpp
parent24aef9a98267ee07f3771f010b9e35de392e8355 (diff)
Fix test build on macOS
Diffstat (limited to 'indra/llfilesystem/tests/lldir_test.cpp')
-rw-r--r--indra/llfilesystem/tests/lldir_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llfilesystem/tests/lldir_test.cpp b/indra/llfilesystem/tests/lldir_test.cpp
index 6e191ad096..d7d57fa86f 100644
--- a/indra/llfilesystem/tests/lldir_test.cpp
+++ b/indra/llfilesystem/tests/lldir_test.cpp
@@ -435,7 +435,7 @@ namespace tut
for (counter=0, foundUnused=false; !foundUnused; counter++ )
{
char counterStr[3];
- sprintf(counterStr, "%02d", counter);
+ snprintf(counterStr, sizeof(counterStr), "%02d", counter);
uniqueDir = dirbase + counterStr;
foundUnused = ! ( LLFile::isdir(uniqueDir) || LLFile::isfile(uniqueDir) );
}