From a7129131011fd128f1f290e88b731b1d017c85ff Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sat, 3 Jun 2006 03:07:38 +0000 Subject: [PATCH] fix #10, introduced by [11] git-svn-id: svn://svn.lighttpd.net/xcache/trunk@59 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmap.c b/mmap.c index 8aabeb7..9a87e59 100644 --- a/mmap.c +++ b/mmap.c @@ -80,7 +80,7 @@ void *xc_shm_to_readwrite(xc_shm_t *shm, void *p) /* {{{ */ { if (shm->diff) { assert(xc_shm_is_readonly(p)); - p = PTR_SUB(p, -shm->diff); + p = PTR_SUB(p, shm->diff); } assert(xc_shm_is_readwrite(p)); return p;