summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-20 18:12:35 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-20 18:12:35 +0000
commit23e22f5ad7ff8815b741e5de54c0b98982f70ccc (patch)
tree62ea5b44edcf8709d8ab7cb392fd363f0aeb637a /sys/lib
parent008ccd603b76882fa33ac72490823d74fbe91fc6 (diff)
align end of core to the int
Diffstat (limited to 'sys/lib')
-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);