summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-18 15:58:16 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-18 15:58:16 -0700
commit00d9f98ccc6cd78690960949bbbfcf70cc747580 (patch)
treea0c65070394606b664dabd85f91e8010e9596f9e
parent75a811a4f7e3de6d06d57ad0d3a3d4a5d7ca7534 (diff)
Work around DMC compilation error
For some reason reference to a fixed-size array works in two other places but not in this one...
-rw-r--r--src/pugixml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index dad8711..064ecac 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4482,10 +4482,11 @@ PUGI__NS_BEGIN
// set value with conversion functions
template <typename String, typename Header>
- PUGI__FN bool set_value_ascii(String& dest, Header& header, uintptr_t header_mask, char (&buf)[128])
+ PUGI__FN bool set_value_ascii(String& dest, Header& header, uintptr_t header_mask, char* buf)
{
#ifdef PUGIXML_WCHAR_MODE
char_t wbuf[128];
+ assert(strlength(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
size_t offset = 0;
for (; buf[offset]; ++offset) wbuf[offset] = buf[offset];