diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-20 18:12:35 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-07-20 18:12:35 +0000 |
commit | 23e22f5ad7ff8815b741e5de54c0b98982f70ccc (patch) | |
tree | 62ea5b44edcf8709d8ab7cb392fd363f0aeb637a /sys/lib | |
parent | 008ccd603b76882fa33ac72490823d74fbe91fc6 (diff) |
align end of core to the int
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libsa/exec.new.c | 4 |
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); |