diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 15:24:00 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 15:24:00 +0000 |
commit | 91777e5c172c401ff25bd5a37067c5caca78dc63 (patch) | |
tree | 519c6b18c83d88ba800176614c31ae06cbb91a0d /src | |
parent | 053a4c0ea79fa2b18d693ad683b8dd22ffea9f49 (diff) |
XPath: Fixed evaluate_string for wchar mode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@660 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixpath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixpath.cpp b/src/pugixpath.cpp index 378138d..14315ca 100644 --- a/src/pugixpath.cpp +++ b/src/pugixpath.cpp @@ -3785,7 +3785,7 @@ namespace pugi size_t size = r.length() + 1; // $$ zero-terminate? - if (capacity > 0) memcpy(buffer, r.c_str(), size < capacity ? size : capacity); + if (capacity > 0) memcpy(buffer, r.c_str(), (size < capacity ? size : capacity) * sizeof(char_t)); return size; } |