summaryrefslogtreecommitdiff
path: root/tests/test_dom_modify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r--tests/test_dom_modify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp
index 5a5d3ff..c14d8eb 100644
--- a/tests/test_dom_modify.cpp
+++ b/tests/test_dom_modify.cpp
@@ -584,9 +584,9 @@ TEST(dom_node_declaration_copy)
TEST(dom_string_out_of_memory)
{
- unsigned int length = 65536;
+ const unsigned int length = 65536;
+ static char_t string[length + 1];
- char_t* string = new char_t[length + 1];
for (unsigned int i = 0; i < length; ++i) string[i] = 'a';
string[length] = 0;