summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/sys/kern/nxheap-mprotect/nxheap-mprotect.c4
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);
}