summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2014-01-25 17:57:25 +0000
committerJim Jagielski <jim@apache.org>2014-01-25 17:57:25 +0000
commit043ca4e51999f33b85c451aa8b5bc296c2f70074 (patch)
tree7ffcced08b7da7746aa5ab27894acfa79e42d65c /shmem
parentf2028133e60a9f1c86debac1ed27a5c8f79251e9 (diff)
downloadapr-043ca4e51999f33b85c451aa8b5bc296c2f70074.tar.gz
Revert mistaken c/p
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1561347 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 3fb20123d..0d026e31c 100644
--- a/shmem/unix/shm.c
+++ b/shmem/unix/shm.c
@@ -325,7 +325,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m,
shm_unlink(shm_name); /* we're failing, remove the object */
return status;
}
- new_m->base = mmap(NULL, new_m->realsize, PROT_READ | PROT_WRITE,
+ new_m->base = mmap(NULL, reqsize, PROT_READ | PROT_WRITE,
MAP_SHARED, tmpfd, 0);
/* FIXME: check for errors */