summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/info/indices.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-07-22 16:52:57 +0000
committerru <ru@FreeBSD.org>2002-07-22 16:52:57 +0000
commitf10c49f50ce56ec7bfbe5d6c4868251e2d4a1646 (patch)
tree69fb6353246292f64a8c7babbd9a86da48cbb4dc /contrib/texinfo/info/indices.c
parent5500b59c459afe212e4ee8d1c1847e051a9b7653 (diff)
downloadFreeBSD-src-f10c49f50ce56ec7bfbe5d6c4868251e2d4a1646.zip
FreeBSD-src-f10c49f50ce56ec7bfbe5d6c4868251e2d4a1646.tar.gz
Import of stripped down GNU texinfo 4.2
Diffstat (limited to 'contrib/texinfo/info/indices.c')
-rw-r--r--contrib/texinfo/info/indices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/texinfo/info/indices.c b/contrib/texinfo/info/indices.c
index 6583da1..9123c46 100644
--- a/contrib/texinfo/info/indices.c
+++ b/contrib/texinfo/info/indices.c
@@ -1,7 +1,7 @@
/* indices.c -- deal with an Info file index.
- $Id: indices.c,v 1.14 1999/09/25 16:10:04 karl Exp $
+ $Id: indices.c,v 1.15 2002/03/11 13:43:52 karl Exp $
- Copyright (C) 1993, 97, 98, 99 Free Software Foundation, Inc.
+ Copyright (C) 1993, 97, 98, 99, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@ add_index_to_index_nodenames (array, node)
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);
OpenPOWER on IntegriCloud