From fca156711298a391cc0ebfd07421bc6f16db992c Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Sun, 1 May 2005 17:45:28 +0000 Subject: Avoid out of bounds access; Andreas Vogele" --- gnu/usr.bin/texinfo/makeinfo/multi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/texinfo/makeinfo/multi.c b/gnu/usr.bin/texinfo/makeinfo/multi.c index 3f50e7884a3..0e311cee431 100644 --- a/gnu/usr.bin/texinfo/makeinfo/multi.c +++ b/gnu/usr.bin/texinfo/makeinfo/multi.c @@ -1,5 +1,5 @@ /* multi.c -- multitable stuff for makeinfo. - $Id: multi.c,v 1.5 2003/05/05 22:19:16 avsm Exp $ + $Id: multi.c,v 1.6 2005/05/01 17:45:27 otto Exp $ Copyright (C) 1996, 97, 98, 99, 2000, 01, 02 Free Software Foundation, Inc. @@ -453,8 +453,8 @@ output_multitable_row () /* remove trailing whitespace from each column */ for (i = 1; i <= last_column; i++) { - if (envs[i].output_paragraph_offset) - while (cr_or_whitespace (CHAR_AT (envs[i].output_paragraph_offset - 1))) + while (envs[i].output_paragraph_offset && + cr_or_whitespace (CHAR_AT (envs[i].output_paragraph_offset - 1))) envs[i].output_paragraph_offset--; if (i == current_env_no) -- cgit v1.2.3