summaryrefslogtreecommitdiffstats
path: root/src/xmlgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r--src/xmlgen.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 4e931cd..8489a3c 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1920,9 +1920,7 @@ void generateXML()
int len=static_cast<int>(endLine-startLine);
if (len>0)
{
- QCString s(len+1);
- qstrncpy(s.rawData(),startLine,len);
- s[len]='\0';
+ QCString s(startLine,len);
if (s.find("<!-- Automatically insert here the HTML entities -->")!=-1)
{
HtmlEntityMapper::instance()->writeXMLSchema(t);