Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Martin McCormick
I've got some code which I wrote about 6 or 8 years ago that apparently doesn't get along right now with FreeBSD9.0. In the problem code, there is a loop that uses fgets to read a line from a file. It runs properly until the 2708TH iteration and then it dumps core with a segmentation fault. char

Re: Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Martin McCormick
Never mind. I may be back with another question, but I figured out that it is not the input loop. I simply removed all the code in the loop except for a variable that counts the number of iterations and just ran thatand it read the entire file so the problem is introduced when assigning values to

Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Robert Huff
Martin McCormick writes: I've got some code which I wrote about 6 or 8 years ago that apparently doesn't get along right now with FreeBSD9.0. In the problem code, there is a loop that uses fgets to read a line from a file. It runs properly until the 2708TH iteration and then it dumps

Re: Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Brad Mettee
On 3/21/2012 10:50 AM, Martin McCormick wrote: I've got some code which I wrote about 6 or 8 years ago that apparently doesn't get along right now with FreeBSD9.0. In the problem code, there is a loop that uses fgets to read a line from a file. It runs properly until the 2708TH iteration and

Re: Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Erich Dollansky
Hi, On Wednesday 21 March 2012 21:50:25 Martin McCormick wrote: I've got some code which I wrote about 6 or 8 years ago that apparently doesn't get along right now with FreeBSD9.0. In the problem code, there is a loop that uses fgets to read a line from a file. It runs properly until the