From 00d9f98ccc6cd78690960949bbbfcf70cc747580 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 18 Oct 2015 15:58:16 -0700 Subject: Work around DMC compilation error For some reason reference to a fixed-size array works in two other places but not in this one... --- src/pugixml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 - 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]; -- cgit v1.2.3