summaryrefslogtreecommitdiffhomepage
path: root/src/nosleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nosleep.c')
-rw-r--r--src/nosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nosleep.c b/src/nosleep.c
index 4ad02df..c1c5a9b 100644
--- a/src/nosleep.c
+++ b/src/nosleep.c
@@ -55,7 +55,7 @@ bool nosleep_init(void) {
}
vtable = *(void ***)insys;
if (!os_mprot(vtable + vtidx_SleepUntilInput, sizeof(void *),
- PAGE_EXECUTE_READWRITE)) {
+ PAGE_READWRITE)) {
con_warn("nosleep: couldn't make memory writable\n");
return false;
}