=================================================================== RCS file: /usr/OpenBSD/cvs/src/gnu/usr.bin/texinfo/makeinfo/html.c,v retrieving revision 1.1.1.3 retrieving revision 1.2 diff -u -r1.1.1.3 -r1.2 --- src/gnu/usr.bin/texinfo/makeinfo/html.c 2006/07/17 16:03:46 1.1.1.3 +++ src/gnu/usr.bin/texinfo/makeinfo/html.c 2006/07/17 22:29:29 1.2 @@ -1,5 +1,5 @@ /* html.c -- html-related utilities. - $Id: html.c,v 1.1.1.3 2006/07/17 16:03:46 espie Exp $ + $Id: html.c,v 1.2 2006/07/17 22:29:29 espie Exp $ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. @@ -445,7 +445,7 @@ return 0; /* Find the end of the previous tag. */ - while (output_paragraph[check_position-1] != '>' && check_position > 0) + while (check_position > 0 && output_paragraph[check_position-1] != '>') check_position--; /* Save stuff between tag's end to output_paragraph's end. */ @@ -462,7 +462,7 @@ } /* Find the start of the previous tag. */ - while (output_paragraph[check_position-1] != '<' && check_position > 0) + while (check_position > 0 && output_paragraph[check_position-1] != '<') check_position--; /* Check to see if this is the tag. */