summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/document.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/document.cxx')
-rw-r--r--unoxml/source/dom/document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/document.cxx b/unoxml/source/dom/document.cxx
index b9c167ee2486..9cba7eec823d 100644
--- a/unoxml/source/dom/document.cxx
+++ b/unoxml/source/dom/document.cxx
@@ -487,7 +487,7 @@ namespace DOM
xmlChar const*const pData =
reinterpret_cast<xmlChar const*>(oData.getStr());
xmlNodePtr const pText =
- xmlNewCDataBlock(m_aDocPtr, pData, strlen(oData.getStr()));
+ xmlNewCDataBlock(m_aDocPtr, pData, oData.getLength());
Reference< XCDATASection > const xRet(
static_cast< XNode* >(GetCNode(pText).get()),
UNO_QUERY_THROW);