diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 3 |
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]; |