From: Hans-Bernhard Broeker 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: 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 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.