Xref: news-dnh.mv.net comp.os.msdos.djgpp:3530 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!lade.news.pipex.net!pipex!maas-neotek.com!news From: iain AT libra DOT wintermute DOT co DOT uk (Iain Russell) Newsgroups: comp.os.msdos.djgpp Subject: Re: Dodgy fgets in DJGPP? Help! Date: Fri, 01 Dec 1995 07:24:52 GMT Organization: Wintermute Ltd, Scotland Lines: 17 References: <49ere9$5io AT fs2 DOT abdn DOT ac DOT uk> Nntp-Posting-Host: libra.wintermute.co.uk To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp R DOT Jaycocks1 AT lut DOT ac DOT uk (Robert Jaycocks) wrote: >First thing, you seem to have no mail address, so this has to be posted, ok, that's probably because I posted from my Uni account. My main e-mail address is libra AT wintermute DOT co DOT uk >instead of mailed. It seem to me that you have not allocated enough >storage for line. This then causes fp to be overwritten (I suspect line is >an array). Try setting the array size to MAX_CHARS+1. Thanks for the advice - I tried increasing the size of 'line' even though it should have been big enough already, but with no luck. Worth a try though.... Iain