]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly dir.c.~12~
authorRoland McGrath <roland@redhat.com>
Fri, 14 May 1993 22:41:07 +0000 (22:41 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 14 May 1993 22:41:07 +0000 (22:41 +0000)
dir.c

diff --git a/dir.c b/dir.c
index a4c435f4ed21edfd64dc5d136e5a91ea5cce85c1..8c27c51f7c75aef330b1a181e42844004c76b5fb 100644 (file)
--- 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;