diff options
-rw-r--r-- | dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |