aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmimp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbmimp.c')
-rw-r--r--src/gdbmimp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gdbmimp.c b/src/gdbmimp.c
index 57d1933..fc2710d 100644
--- a/src/gdbmimp.c
+++ b/src/gdbmimp.c
@@ -65,14 +65,14 @@ gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag)
}
/* Allocate buffers. */
- kbufsize = 512;
+ kbufsize = GDBM_MIN_BLOCK_SIZE;
kbuffer = malloc (kbufsize);
if (kbuffer == NULL)
{
gdbm_set_errno (NULL, GDBM_MALLOC_ERROR, FALSE);
return -1;
}
- dbufsize = 512;
+ dbufsize = GDBM_MIN_BLOCK_SIZE;
dbuffer = malloc (dbufsize);
if (dbuffer == NULL)
{
@@ -95,7 +95,7 @@ gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag)
if (size > kbufsize)
{
- kbufsize = (size + 512);
+ kbufsize = (size + GDBM_MIN_BLOCK_SIZE);
kbuffer = realloc (kbuffer, kbufsize);
if (kbuffer == NULL)
{
@@ -127,7 +127,7 @@ gdbm_import_from_file (GDBM_FILE dbf, FILE *fp, int flag)
}
if (size > dbufsize)
{
- dbufsize = (size + 512);
+ dbufsize = (size + GDBM_MIN_BLOCK_SIZE);
dbuffer = realloc (dbuffer, dbufsize);
if (dbuffer == NULL)
{

Return to:

Send suggestions and report system problems to the System administrator.