diff options
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r-- | mbbsd/stuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index d35be51b..2f41f536 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -719,7 +719,8 @@ show_help(char * const helptext[]) void *MALLOC(int size) { int *p; - p = (int *)mmap(NULL, (size + 4), PROT_READ | PROT_WRITE, MAP_ANON, -1, 0); + p = (int *)mmap(NULL, (size + 4), PROT_READ | PROT_WRITE, + MAP_ANON | MAP_PRIVATE, -1, 0); p[0] = size; #if defined(DEBUG) && !defined(_BBS_UTIL_C_) vmsg("critical malloc %d bytes", size); |