From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ur; Wed Feb 15 02:44:37 EST 2017 Message-ID: <8d12f08e40b5dedeee6d29628e121211@felloff.net> Date: Wed, 15 Feb 2017 08:44:30 +0100 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] 64 bit botches in games/music In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: ISO-certified engine proxy this is wrong: - catobjects = realloc(catobjects, (ntoken+1)*sizeof(Object*)); + catobjects = realloc(catobjects, (ntoken+1)*sizeof(Object**)); extern Object **catobjects; ^- this reads as "ARRAY OF POINTERS", so you want to use n * sizeof(Object*). -- cinap