Skip to content

Commit

Permalink
Fixed off-by one error for last character in compound.xsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Feb 10, 2014
1 parent e3c6363 commit 61b00c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmlgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 61b00c0

Please sign in to comment.