summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-02-10 21:04:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-02-10 21:04:17 (GMT)
commit61b00c0061eda805696fe6f90db15136811e1ed7 (patch)
treee735cdc2e245038b8a3685a2d783750b4667b83d
parente3c636337323ba6e3f21bf1e8cfe2a899a8890c1 (diff)
downloadDoxygen-61b00c0061eda805696fe6f90db15136811e1ed7.zip
Doxygen-61b00c0061eda805696fe6f90db15136811e1ed7.tar.gz
Doxygen-61b00c0061eda805696fe6f90db15136811e1ed7.tar.bz2
Fixed off-by one error for last character in compound.xsd
-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)
{