summaryrefslogtreecommitdiff
path: root/src/libstddjb/cdb_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/cdb_init.c')
-rw-r--r--src/libstddjb/cdb_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/cdb_init.c b/src/libstddjb/cdb_init.c
index 2a1ffb3..8b56c1a 100644
--- a/src/libstddjb/cdb_init.c
+++ b/src/libstddjb/cdb_init.c
@@ -15,7 +15,7 @@ int cdb_init (struct cdb *c, int fd)
char *map ;
if (fstat(fd, &st) < 0) return -1 ;
if (st.st_size > UINT32_MAX) return (errno = EOVERFLOW, -1) ;
- map = mmap(0, st.st_size, PROT_READ, MAP_SHARED, fd, -1) ;
+ map = mmap(0, st.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
if (map == MAP_FAILED) return -1 ;
c->map = map ;
c->size = st.st_size ;