Permalink
Browse files

Fixed off-by one error for last character in compound.xsd

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Feb 10, 2014
1 parent e3c6363 commit 61b00c0061eda805696fe6f90db15136811e1ed7
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)
{

0 comments on commit 61b00c0

Please sign in to comment.