diff options
author | 2013-09-18 21:29:52 +0200 | |
---|---|---|
committer | 2013-09-18 21:29:52 +0200 | |
commit | b05730c5e293ea18745fe88c2885ce9f902a50ad (patch) | |
tree | 145b39bcd43a5922a86e317e3e9565248683d25f | |
parent | drawFlag() fixed a definite endless loop (diff) | |
download | ufed-b05730c5e293ea18745fe88c2885ce9f902a50ad.tar.gz ufed-b05730c5e293ea18745fe88c2885ce9f902a50ad.tar.bz2 ufed-b05730c5e293ea18745fe88c2885ce9f902a50ad.zip |
findFlagStart() Fixed another potential endless loop
-rw-r--r-- | ufed-curses-checklist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c index 2ac712b..8a3e9e1 100644 --- a/ufed-curses-checklist.c +++ b/ufed-curses-checklist.c @@ -630,8 +630,8 @@ static int findFlagStart(sFlag* flag, int* index, sWrap** wrap, int* line, bool* if (isDescLegal(flag, *index)) { if (eWrap_normal == e_wrap) { ++(*line); - ++usedLines; ++(*index); + ++usedLines; } else { /* With wrapped descriptions there are two possible * situations: @@ -665,6 +665,8 @@ static int findFlagStart(sFlag* flag, int* index, sWrap** wrap, int* line, bool* } } // End of handling wrapped lines } // End of having a legal flag + else + ++(*index); } // end of moving to line 0 // Write back wrapPart: |