From: dnelson AT quake DOT xnet DOT com (Dan Nelson) Subject: Re: fseek trouble() ?!? To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Thu, 17 Nov 1994 10:05:16 -0600 (CST) in the last episode, kunst AT prl DOT philips DOT nl said: > > > Dirk Noll (noll AT apx00 DOT physik DOT uni-frankfurt DOT de) wrote: > >>> > >>> We like to run a few UNIX programs, which are written in ANSI-C language, > >>> on a PC (Pentium 586, 60Hz). We tried to use the GNU DJGPP Version 2.6.0 > >>> on the PC. After running the programs we found the following bug: The > >>> fseek-function did not work when we used the SEEK_CUR option. Instead of > >>> using the current position in the file, the position jumps to the end. > >>> > >>> My current version is DJGPP 1.12. I had this happen to me also. This is a known bug that was in (I believe) 112m0. There are two temporary fixes: 1: replace all fseek(fp,x,SEEK_CUR) with fseek(fp,ftell(fp)+x,SEEK_SET) 2: replace the fseek.o from libc.a with one from a previous version. 1.12m2 definitely does not have this problem.