Chromium Code Reviews| Index: mprotect.cc |
| =================================================================== |
| --- mprotect.cc (revision 168) |
| +++ mprotect.cc (working copy) |
| @@ -41,7 +41,8 @@ |
| // Changing permissions on memory regions that were newly mapped inside of |
| // the sandbox is OK. |
| - SecureMem::sendSystemCall(*info, SecureMem::SEND_UNLOCKED, mprotect_req.addr, |
| + SecureMem::sendSystemCall(*info, SecureMem::SEND_UNLOCKED, |
| + const_cast<void*>(mprotect_req.addr), |
| mprotect_req.len, mprotect_req.prot); |
| return true; |
| } |