diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-05-01 17:45:28 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-05-01 17:45:28 +0000 |
commit | fca156711298a391cc0ebfd07421bc6f16db992c (patch) | |
tree | 1caa7dd36e953df26cc05750980d053f3e20a9d4 | |
parent | 7be690dddefa9034633ea60f7113ef827c9ba2eb (diff) |
Avoid out of bounds access; Andreas Vogele" <voegelas at gmx dot net>
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/multi.c | 6 |
1 files 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) |