From f059634cda5f171d45152b925a6557b020a10134 Mon Sep 17 00:00:00 2001
From: uz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Date: Sun, 25 Mar 2012 13:13:37 +0000
Subject: [PATCH] Fixed an invalid store offset which resulted in random values
 returned by the function.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5624 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
 libsrc/common/_heapblocksize.s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsrc/common/_heapblocksize.s b/libsrc/common/_heapblocksize.s
index 2be32fef4..b7458479c 100644
--- a/libsrc/common/_heapblocksize.s
+++ b/libsrc/common/_heapblocksize.s
@@ -32,7 +32,7 @@ __heapblocksize:
         sta     ptr2            ; Place the raw block pointer into ptr2
         iny
         lda     (ptr1),y
-        sta     ptr2+2
+        sta     ptr2+1
 
 ; Load the size from the raw block