From 61b00c0061eda805696fe6f90db15136811e1ed7 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 10 Feb 2014 22:04:17 +0100 Subject: Fixed off-by one error for last character in compound.xsd --- src/xmlgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12