changeset 252:047d2829bdf6

- see last commit - sloppy me forgot a part of that regression fix
author Tassilo Philipp
date Sun, 14 May 2017 02:29:55 +0200
parents 3f7c69fadfc3
children 5cfe4322c500
files dyncallback/dyncall_alloc_wx_mmap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dyncallback/dyncall_alloc_wx_mmap.c	Sun May 14 02:26:21 2017 +0200
+++ b/dyncallback/dyncall_alloc_wx_mmap.c	Sun May 14 02:29:55 2017 +0200
@@ -72,6 +72,7 @@
 #if !defined(MAP_ANON) && defined(DC_UNIX)
   /* Fixup pointer for no-MAP_ANON workaround (see above) */
   p -= sizeof(int);
+  size += sizeof(int);
 #endif
   return mprotect(p, size, PROT_READ|PROT_EXEC);
 }