summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorianh <ianh@13f79535-47bb-0310-9956-ffa450edef68>2002-02-05 04:32:52 +0000
committerianh <ianh@13f79535-47bb-0310-9956-ffa450edef68>2002-02-05 04:32:52 +0000
commit664a418514f00f84a09cdd906b92ec250e328047 (patch)
tree23aa24850b5493cfc27e7cf04b646d4fd29ac5df /shmem
parentf2f736ebd226036b410728a55514f3c0550ffb9d (diff)
downloadlibapr-664a418514f00f84a09cdd906b92ec250e328047.tar.gz
not allocating memory for the metadata..
Thanks Jin. Submitted by: Jin Hong <jinh@cnet.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c
index 284622f27..54310a8b7 100644
--- a/shmem/unix/shm.c
+++ b/shmem/unix/shm.c
@@ -197,7 +197,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m,
return APR_SUCCESS;
#elif APR_USE_SHMEM_MMAP_ANON
- new_m->base = mmap(NULL, reqsize, PROT_READ|PROT_WRITE,
+ new_m->base = mmap(NULL, new_m->realsize, PROT_READ|PROT_WRITE,
MAP_ANON|MAP_SHARED, -1, 0);
if (new_m->base == MAP_FAILED) {
return errno;