www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/05/08:45:06

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP Allegro sprite troubles
Date: 5 Dec 2002 13:32:30 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 13
Message-ID: <asnkhe$29v$1@nets3.rz.RWTH-Aachen.DE>
References: <3DED0701 DOT 5040209 AT rubyridge DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1039095150 2367 137.226.32.75 (5 Dec 2002 13:32:30 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 5 Dec 2002 13:32:30 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Legion <kilroy AT rubyridge DOT com> wrote:

>     BITMAP **bitmaps = malloc(sizeof(BITMAP * 12));

This line is seriously wrong.  You're allocating size for 12 BITMAP
structs, but assigning the pointer to this block to a pointer to
pointer to BITMAP.  That's one pointer indirection too much on the
left, or one too few on the right side of that assignment.

You will have to correct this.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019