summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-01 22:24:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-03 10:09:29 +0100
commit70f7691d4110c4384e058ae3e64003ca9ad963a6 (patch)
tree883b96df18765d37563a03f3b8a2e3dcfefbf759 /arch/sandbox
parente88417b5ef9de74944bf3d8fa86f184abbac68ea (diff)
downloadbarebox-70f7691d4110c4384e058ae3e64003ca9ad963a6.tar.gz
fix malloc space sizes
end is start + size - 1, not start + size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/os/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c
index 1c5ae5d34b..9258c66156 100644
--- a/arch/sandbox/os/common.c
+++ b/arch/sandbox/os/common.c
@@ -262,7 +262,7 @@ int main(int argc, char *argv[])
printf("unable to get malloc space\n");
exit(1);
}
- mem_malloc_init(ram, ram + malloc_size);
+ mem_malloc_init(ram, ram + malloc_size - 1);
while (1) {
int option_index = 0;