XPath: Fixed evaluate_string for wchar mode
git-svn-id: http://pugixml.googlecode.com/svn/trunk@660 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
053a4c0ea7
commit
91777e5c17
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user