summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smenu.c b/smenu.c
index cff0104..b7e36a8 100644
--- a/smenu.c
+++ b/smenu.c
@@ -6809,7 +6809,7 @@ main(int argc, char * argv[])
"[visual_bell] "
"[ignore_quotes] "
"[incremental_search] "
- "[limits #limit:value...] "
+ "[limits... #limit:value...] "
"[forgotten_timeout #timeout] "; /* don't remove this space! */
main_spec_options = "[*copyright] "
@@ -8505,7 +8505,7 @@ main(int argc, char * argv[])
/* One more word... */
/* """""""""""""""" */
- if (count == limits.words)
+ if (count + 1 >= limits.words)
{
fprintf(stderr,
"The number of read words has reached the limit of %ld.\n",