> From: Werner LEMBERG <[EMAIL PROTECTED]>
> Date: Sat, 09 Mar 2002 07:02:29 +0100 (CET)
> 
> If I do `i .$', the command responds with
> 
>   Found ".$" in Operator Index. (`,' tries to find next.)
>                 ^^^^^^^^
> 
> which is clearly wrong.

Indeed.  Please try the patch below:

2002-03-09  Eli Zaretskii  <[EMAIL PROTECTED]>

        * info/indices.c (add_index_to_index_nodenames): Fix an off-by-one
        error when computing the number of the last index entry.



--- info/indices.c~0    Sat Sep 25 18:10:12 1999
+++ info/indices.c      Sat Mar  9 13:29:36 2002
@@ -61,7 +61,7 @@ add_index_to_index_nodenames (array, nod
   register int i, last;
   INDEX_NAME_ASSOC *assoc;
 
-  for (last = 0; array[last]; last++);
+  for (last = 0; array[last + 1]; last++);
   assoc = (INDEX_NAME_ASSOC *)xmalloc (sizeof (INDEX_NAME_ASSOC));
   assoc->name = xstrdup (node->nodename);
 

_______________________________________________
Bug-texinfo mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to