summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-18 17:52:45 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-10-18 17:52:45 -0700
commite7f1e3d9dde85ad78049ca6dca904bc6869a284b (patch)
tree166a8224dd13c62eeca46cd5c0bacb130bea14d1 /src
parente45c173f73fdbdf792b5c7b2f997405f690749c7 (diff)
Fix wchar mode
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index c5987d4..737733e 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4487,14 +4487,14 @@ PUGI__NS_BEGIN
{
#ifdef PUGIXML_WCHAR_MODE
char_t wbuf[128];
- assert(strlength(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
+ assert(strlen(buf) < sizeof(wbuf) / sizeof(wbuf[0]));
size_t offset = 0;
for (; buf[offset]; ++offset) wbuf[offset] = buf[offset];
return strcpy_insitu(dest, header, header_mask, wbuf, offset);
#else
- return strcpy_insitu(dest, header, header_mask, buf, strlength(buf));
+ return strcpy_insitu(dest, header, header_mask, buf, strlen(buf));
#endif
}