diff options
| -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;  	} | 
