diff options
author | comex | 2015-01-25 21:09:10 -0500 |
---|---|---|
committer | comex | 2015-01-25 21:09:10 -0500 |
commit | ef5abd92fdcf9337e512de1ec541ca310eaaea06 (patch) | |
tree | 1098763344f370f6057e21c3fbf56e230058cae5 /lib/darwin/execmem.c | |
parent | make a basic .deb generator (diff) | |
download | substitute-ef5abd92fdcf9337e512de1ec541ca310eaaea06.tar.gz |
this is dumb
Diffstat (limited to 'lib/darwin/execmem.c')
-rw-r--r-- | lib/darwin/execmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/darwin/execmem.c b/lib/darwin/execmem.c index 22c1c2e..76f0643 100644 --- a/lib/darwin/execmem.c +++ b/lib/darwin/execmem.c @@ -34,7 +34,7 @@ int execmem_write(void *dest, const void *src, size_t len) { * (Obviously, it will still break if the user targets some libsubstitute * function within the same page as this one, though.) */ int ret = manual_syscall(SYS_mprotect, lopage, hipage - lopage, - PROT_READ | PROT_WRITE, 0, 0); + PROT_READ | PROT_WRITE, 0); if (ret) { errno = ret; return SUBSTITUTE_ERR_VM; @@ -48,7 +48,7 @@ int execmem_write(void *dest, const void *src, size_t len) { int oldprot = info.protection & (PROT_READ | PROT_WRITE | PROT_EXEC); ret = manual_syscall(SYS_mprotect, lopage, hipage - lopage, - oldprot, 0, 0); + oldprot, 0); if (ret) { errno = ret; return SUBSTITUTE_ERR_VM; |