diff options
Diffstat (limited to 'src/gdbmseq.c')
-rw-r--r-- | src/gdbmseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdbmseq.c b/src/gdbmseq.c index 4323185..4167697 100644 --- a/src/gdbmseq.c +++ b/src/gdbmseq.c @@ -1,7 +1,7 @@ /* gdbmseq.c - Routines to visit all keys. Not in sorted order. */ /* This file is part of GDBM, the GNU data base manager. - Copyright (C) 1990, 1991, 1993, 2007, 2011 Free Software Foundation, + Copyright (C) 1990, 1991, 1993, 2007, 2011, 2013 Free Software Foundation, Inc. GDBM is free software; you can redistribute it and/or modify @@ -49,12 +49,12 @@ get_next_key (GDBM_FILE dbf, int elem_loc, datum *return_val) /* Find the next bucket. It is possible several entries in the bucket directory point to the same bucket. */ - while (dbf->bucket_dir < dbf->header->dir_size / sizeof (off_t) + while (dbf->bucket_dir < GDBM_DIR_COUNT (dbf) && dbf->cache_entry->ca_adr == dbf->dir[dbf->bucket_dir]) dbf->bucket_dir++; /* Check to see if there was a next bucket. */ - if (dbf->bucket_dir < dbf->header->dir_size / sizeof (off_t)) + if (dbf->bucket_dir < GDBM_DIR_COUNT (dbf)) _gdbm_get_bucket (dbf, dbf->bucket_dir); else /* No next key, just return. */ |