Message-ID: From: "EFT.Eric Devolder" To: mert0407 AT sable DOT ox DOT ac DOT uk Cc: djgpp AT delorie DOT com Subject: RE: Program goes wrong when optimized under gcc 2.8 Date: Tue, 29 Sep 1998 09:39:02 +0200 MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk > ---------- > From: George Foot[SMTP:george DOT foot AT merton DOT ox DOT ac DOT uk] > Reply To: mert0407 AT sable DOT ox DOT ac DOT uk > Sent: lundi 28 septembre 1998 17:51 > To: EFT.Eric Devolder > Subject: Re: Program goes wrong when optimized under gcc 2.8 > > On 28 Sep 98 at 11:24, EFT.Eric Devolder wrote: > > > void process_header(long *total, long *hash) > > { > > struct date *now; > > > > getdate(now); > > You haven't pointed `now' at anything. Try this instead: > > struct date now; > getdate (&now); > > then alter the rest of the function to use `.' instead of `->'. > > -- > george DOT foot AT merton DOT oxford DOT ac DOT uk > > Thank you! I apologize for this enormous error. It should probably write over sprintf() structures, causing strange behavior in output. Regards, Eric Devolder Eric DEVOLDER (look in to get my reply adress)