diff --git a/src/xmlout.c b/src/xmlout.c index e1f0a51..41a90d3 100644 --- a/src/xmlout.c +++ b/src/xmlout.c @@ -290,7 +290,7 @@ xmlOutRuns (const System sys) index = 0; rd = sys->runs[run].start; - while (rd != NULL) + while (rd != NULL && index < sys->runs[run].step) { xmlOutEvent (sys, rd, -1, index); index++;