- Fix bug #7144 (infinite loop sometimes with -q and double-colon rules)

- Resolve support request #103195 (rationalize wordlist fn arguments)
This commit is contained in:
Paul Smith
2005-02-28 09:41:25 +00:00
parent d2516343bc
commit a2232470c2
6 changed files with 56 additions and 51 deletions

View File

@@ -771,6 +771,10 @@ func_wordlist (char *o, char **argv, const char *funcname UNUSED)
_("non-numeric second argument to `wordlist' function"));
start = atoi (argv[0]);
if (start < 1)
fatal (reading_file, "invalid first argument to `wordlist' function: '%d'",
message, start);
count = atoi (argv[1]) - start + 1;
if (count > 0)