diff options
Diffstat (limited to 'tests/test_dom_traverse.cpp')
-rw-r--r-- | tests/test_dom_traverse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_dom_traverse.cpp b/tests/test_dom_traverse.cpp index 366c683..0ca554a 100644 --- a/tests/test_dom_traverse.cpp +++ b/tests/test_dom_traverse.cpp @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS
+#define _SCL_SECURE_NO_WARNINGS
#include "common.hpp"
@@ -541,7 +542,7 @@ struct test_walker: xml_tree_walker #ifdef PUGIXML_WCHAR_MODE
wchar_t wbuf[32];
- std::copy(buf, buf + strlen(buf) + 1, wbuf);
+ std::copy(buf, buf + strlen(buf) + 1, &wbuf[0]);
return std::basic_string<pugi::char_t>(wbuf);
#else
|