summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1998-07-20 18:12:34 +0000
committermickey <mickey@openbsd.org>1998-07-20 18:12:34 +0000
commitdcf09724895c3fb4bf2145892d46265c39d02458 (patch)
tree929828dc73664ab90f074cb54b72ab125f08673e
parentmountd -r opt not needed; form@vs.itam.nsc.ru (diff)
downloadwireguard-openbsd-dcf09724895c3fb4bf2145892d46265c39d02458.tar.xz
wireguard-openbsd-dcf09724895c3fb4bf2145892d46265c39d02458.zip
align end of core to the int
-rw-r--r--sys/lib/libsa/exec.new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/exec.new.c b/sys/lib/libsa/exec.new.c
index 2cf5eed76a0..d2bc31849e3 100644
--- a/sys/lib/libsa/exec.new.c
+++ b/sys/lib/libsa/exec.new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.new.c,v 1.1 1998/07/14 03:29:08 mickey Exp $ */
+/* $OpenBSD: exec.new.c,v 1.2 1998/07/20 18:12:34 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -136,7 +136,7 @@ exec(path, loadaddr, howto)
printf("+%u]", sz);
}
- param.xp_end = (u_int)(pa + sz);
+ param.xp_end = ((u_int)(pa + sz) + sizeof(int) -1) & ~(sizeof(int) -1);
printf(" total=0x%x start=0x%x\n", param.xp_end, param.xp_entry);