diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-08-27 18:32:13 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-08-27 18:32:13 +0000 |
commit | 9e29f644bf196d13100f7b0887ca77e5a7f529f8 (patch) | |
tree | 1863f8bc17b944cd8bdf4dcc9f388dffb7d07886 /regress | |
parent | a2f350e0037d71984733074311ab3f5411dfd849 (diff) |
fix the second call to on heap code. Noticed by drahn@. Thanks
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c b/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c index 6a6b8b2c37c..60f1a84d376 100644 --- a/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c +++ b/regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nxheap-mprotect.c,v 1.2 2002/08/27 16:43:51 matthieu Exp $ */ +/* $OpenBSD: nxheap-mprotect.c,v 1.3 2002/08/27 18:32:12 matthieu Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -71,7 +71,7 @@ main(void) /* here we are successfull on segv and fail if it still executes */ fail = 0; mprotect(buf, sizeof(buf), PROT_READ|PROT_WRITE); - ((void (*)(void))&buf)(); + ((void (*)(void))buf)(); exit(1); } |