diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/integration_tests/llimage_libtest/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | indra/llcorehttp/tests/test_httprequest.hpp | 6 | ||||
| -rw-r--r-- | indra/llfilesystem/tests/lldir_test.cpp | 2 | 
3 files changed, 4 insertions, 6 deletions
diff --git a/indra/integration_tests/llimage_libtest/CMakeLists.txt b/indra/integration_tests/llimage_libtest/CMakeLists.txt index 84d1feb758..e6ff142626 100644 --- a/indra/integration_tests/llimage_libtest/CMakeLists.txt +++ b/indra/integration_tests/llimage_libtest/CMakeLists.txt @@ -33,8 +33,6 @@ target_link_libraries(llimage_libtest          llfilesystem          llmath          llimage -        llkdu -        llimagej2coj          )  # Ensure people working on the viewer don't break this library diff --git a/indra/llcorehttp/tests/test_httprequest.hpp b/indra/llcorehttp/tests/test_httprequest.hpp index 1afc08a108..77ed8df066 100644 --- a/indra/llcorehttp/tests/test_httprequest.hpp +++ b/indra/llcorehttp/tests/test_httprequest.hpp @@ -2786,7 +2786,7 @@ void HttpRequestTestObjectType::test<22>()          for (int i(0); i < test_count; ++i)          {              char buffer[128]; -            sprintf(buffer, "/bug2295/%d/", i); +            snprintf(buffer, sizeof(buffer), "/bug2295/%d/", i);              HttpHandle handle = req->requestGetByteRange(HttpRequest::DEFAULT_POLICY_ID,                                                           url_base + buffer,                                                           0, @@ -2817,7 +2817,7 @@ void HttpRequestTestObjectType::test<22>()          for (int i(0); i < test2_count; ++i)          {              char buffer[128]; -            sprintf(buffer, "/bug2295/00000012/%d/", i); +            snprintf(buffer, sizeof(buffer), "/bug2295/00000012/%d/", i);              HttpHandle handle = req->requestGetByteRange(HttpRequest::DEFAULT_POLICY_ID,                                                           url_base + buffer,                                                           0, @@ -2848,7 +2848,7 @@ void HttpRequestTestObjectType::test<22>()          for (int i(0); i < test3_count; ++i)          {              char buffer[128]; -            sprintf(buffer, "/bug2295/inv_cont_range/%d/", i); +            snprintf(buffer, sizeof(buffer), "/bug2295/inv_cont_range/%d/", i);              HttpHandle handle = req->requestGetByteRange(HttpRequest::DEFAULT_POLICY_ID,                                                           url_base + buffer,                                                           0, 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) );        }  | 
