Date: Tue, 24 Apr 2001 20:20:50 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Peter" Message-Id: <7458-Tue24Apr2001202050+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (icecoldgames@hotmail.com) Subject: Re: Compiling Allegro under win2k. References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Peter" > Newsgroups: comp.os.msdos.djgpp > Date: Tue, 24 Apr 2001 13:09:46 GMT > > Another quickie question, my program > crashes when reading image data, the line looks like this: > > fread(Tga.image_descriptor, sizeof( unsigned char ), size, Data); Hard to be sure without seeing the declarations, but I'm guessing that you want this: fread(Data, sizeof( unsigned char ), size, Tga.image_descriptor);