texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/info info-utils.c,1.5,1.6


From: karl
Subject: texinfo/info info-utils.c,1.5,1.6
Date: Sat, 27 Mar 2004 14:26:41 +0100

Update of /cvsroot/texinfo/texinfo/info
In directory sheep:/tmp/cvs-serv10613

Modified Files:
        info-utils.c 
Log Message:
2004-03-27  Jim Meyering  <address@hidden>

        * info/info-utils.c (info_parse_node): Don't read beyond end
        of buffer when looking for ``(line ...)'' in a menu item.


Index: info-utils.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/info/info-utils.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** info-utils.c        14 Mar 2004 00:57:29 -0000      1.5
--- info-utils.c        27 Mar 2004 13:26:39 -0000      1.6
***************
*** 18,22 ****
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Written by Brian Fox (address@hidden). */
  
  #include "info.h"
--- 18,22 ----
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  
!    Originally written by Brian Fox (address@hidden). */
  
  #include "info.h"
***************
*** 105,109 ****
    /* Parse ``(line ...)'' part of menus, if any.  */
    {
!     char *rest = (char *) (string + i + 1);
  
      /* Skip any whitespace first, and then a newline in case the item
--- 105,113 ----
    /* Parse ``(line ...)'' part of menus, if any.  */
    {
!     char *rest = string + i;
! 
!     /* Advance only if it's not already at end of string.  */
!     if (*rest)
!       rest++;
  
      /* Skip any whitespace first, and then a newline in case the item



reply via email to

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