From a3da50e5edf66e974c7462cc652d1591ece9a90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 29 Sep 2002 02:21:22 +0000 Subject: [PATCH] Fixed a bug in the wall code that actually produced the bug I mentioned in the last commit... :/ git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1262 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/core/heap.c b/src/kernel/core/heap.c index cebf3c0135..83c611881e 100644 --- a/src/kernel/core/heap.c +++ b/src/kernel/core/heap.c @@ -290,12 +290,13 @@ out: #if USE_WALL { uint32 *wall = address; + size -= 20; + wall[0] = size; wall[1] = 0xabadcafe; wall[2] = 0xabadcafe; address = (uint8 *)address + 12; - size -= 20; wall = (uint32 *)((uint8 *)address + size); wall[0] = 0xabadcafe;