delorie.com/archives/browse.cgi | search |
Date: | Mon, 16 Jun 2003 07:13:20 +0300 |
From: | "Eli Zaretskii" <eliz AT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | djgpp AT delorie DOT com |
Message-Id: | <1659-Mon16Jun2003071320+0300-eliz@elta.co.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
In-reply-to: | <3.0.1.16.20030615182018.34b7942a@earthlink.net> (message from |
Ethan Rosenberg on Sun, 15 Jun 2003 18:20:18 -0400) | |
Subject: | Re: Program |
References: | <3 DOT 0 DOT 1 DOT 16 DOT 20030615182018 DOT 34b7942a AT earthlink DOT net> |
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 |
> Date: Sun, 15 Jun 2003 18:20:18 -0400 > From: Ethan Rosenberg <ethros AT earthlink DOT net> > > I am trying to run the attached program using djgpp and RHIDE. > > I've indicated where the debugger says it dies. The debugger says > "segmemntation error", and further reading of the screen is an indication > of 'General Protection Fault". Please post here the entire contents of the screen when the program dies. The backtrace produced by the debugger at the point of the crash is also important, so please post that as well. In general, I suspect that you overrun one or more of the string buffers you are using to read file names. You use `gets' to read the file names, which is inherently unsafe; I suggest to use `fgets' instead.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |