summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xmlgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
index 3a9e2ef..b1633fc 100644
--- a/src/xmlgen.cpp
+++ b/src/xmlgen.cpp
@@ -1905,7 +1905,7 @@ void generateXML()
{
// find end of the line
const char *endLine = startLine+1;
- while (*(endLine-1) && *(endLine-1)!='\n') endLine++; // skip to end of the line
+ while (*endLine && *(endLine-1)!='\n') endLine++; // skip to end of the line including \n
int len=endLine-startLine;
if (len>0)
{