summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthieu <matthieu@openbsd.org>2002-08-27 18:32:12 +0000
committermatthieu <matthieu@openbsd.org>2002-08-27 18:32:12 +0000
commitdd4d22e2125762fd85237eee42626ca4000223df (patch)
tree0120b5231f314eafffc889ccef4d03f84f9a6bd2
parentsome warning text for ForwardAgent and ForwardX11; ok markus@ (diff)
downloadwireguard-openbsd-dd4d22e2125762fd85237eee42626ca4000223df.tar.xz
wireguard-openbsd-dd4d22e2125762fd85237eee42626ca4000223df.zip
fix the second call to on heap code. Noticed by drahn@. Thanks
-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);
}