Commit 61b00c00 authored by Dimitri van Heesch's avatar Dimitri van Heesch

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

parent e3c63633
...@@ -1905,7 +1905,7 @@ void generateXML() ...@@ -1905,7 +1905,7 @@ void generateXML()
{ {
// find end of the line // find end of the line
const char *endLine = startLine+1; 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; int len=endLine-startLine;
if (len>0) if (len>0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment