mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
magic numbers evil
This commit is contained in:
parent
b36bd6a98c
commit
1f948c4206
1 changed files with 2 additions and 1 deletions
|
@ -347,7 +347,8 @@ Sys_MakeCodeWriteable (unsigned long startaddr, unsigned long length)
|
|||
endaddr = (endaddr + psize - 1) & ~(psize - 1);
|
||||
# endif
|
||||
|
||||
r = mprotect ((char *) startaddr, endaddr - startaddr, 7);
|
||||
r = mprotect ((char *) startaddr, endaddr - startaddr,
|
||||
PROT_EXEC | PROT_READ | PROT_WRITE);
|
||||
|
||||
if (r < 0)
|
||||
Sys_Error ("Protection change failed");
|
||||
|
|
Loading…
Reference in a new issue