diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/test/llxfer_tut.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/test/llxfer_tut.cpp | 8 |
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 | |||
40 | namespace tut | 38 | namespace 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 | } |