From 91777e5c172c401ff25bd5a37067c5caca78dc63 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 29 Aug 2010 15:24:00 +0000 Subject: XPath: Fixed evaluate_string for wchar mode git-svn-id: http://pugixml.googlecode.com/svn/trunk@660 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3