aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llxfer_tut.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/test/llxfer_tut.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/test/llxfer_tut.cpp b/linden/indra/test/llxfer_tut.cpp
index 5079080..670a929 100644
--- a/linden/indra/test/llxfer_tut.cpp
+++ b/linden/indra/test/llxfer_tut.cpp
@@ -35,8 +35,6 @@
35 35
36#include "llxfer_file.h" 36#include "llxfer_file.h"
37 37
38#include <string>
39
40namespace tut 38namespace tut
41{ 39{
42 struct llxfer_data 40 struct llxfer_data
@@ -49,8 +47,8 @@ namespace tut
49 template<> template<> 47 template<> template<>
50 void llxfer_object::test<1>() 48 void llxfer_object::test<1>()
51 { 49 {
52 // test that he handle an oversized filename correctly. 50 // test that we handle an oversized filename correctly.
53 LLString oversized_filename; 51 std::string oversized_filename;
54 U32 i; 52 U32 i;
55 for (i=0; i<LL_MAX_PATH*2; ++i) // create oversized filename 53 for (i=0; i<LL_MAX_PATH*2; ++i) // create oversized filename
56 { 54 {
@@ -59,6 +57,6 @@ namespace tut
59 57
60 LLXfer_File xff(oversized_filename, FALSE, 1); 58 LLXfer_File xff(oversized_filename, FALSE, 1);
61 ensure("oversized local_filename nul-terminated", 59 ensure("oversized local_filename nul-terminated",
62 strnlen(xff.getName(), LL_MAX_PATH) < LL_MAX_PATH); 60 xff.getFileName().length() < LL_MAX_PATH);
63 } 61 }
64} 62}