summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-05-14 22:41:07 +0000
committerRoland McGrath <roland@redhat.com>1993-05-14 22:41:07 +0000
commit03acd424083a8f83f02ee6999c69ae2e2457a180 (patch)
tree32b40ee451d58650c1bb85c8e0cd50bd4120b664 /dir.c
parentbc0276c3cb07a145e40ed87d33f5d9e559a76887 (diff)
downloadgunmake-03acd424083a8f83f02ee6999c69ae2e2457a180.tar.gz
Formerly dir.c.~12~
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index a4c435f..8c27c51 100644
--- a/dir.c
+++ b/dir.c
@@ -543,7 +543,9 @@ read_dirstream (stream)
if (!df->impossible)
return df->name;
}
- ds->elt = ds->contents->files[++ds->bucket];
+ if (++ds->bucket == DIRFILE_BUCKETS)
+ break;
+ ds->elt = ds->contents->files[ds->bucket];
}
return 0;