bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with `i' command


From: Eli Zaretskii
Subject: Re: problem with `i' command
Date: Sat, 09 Mar 2002 13:50:41 +0200

> From: Werner LEMBERG <address@hidden>
> 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  <address@hidden>

        * 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);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]