From: Tom White Subject: Re: Possible read() bug? To: james_oly AT wiltel DOT com Date: Fri, 27 May 1994 13:09:38 -0400 (EDT) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu > > for(i=length; i>0; i--) > > read(handle, buffer[i], 2000); > > close(handle); > > } > > > > Why this happens, I have no idea. Try changing the above to either > "for( i=length-1; i>=0; i--)" or "read(handle, buffer[i-1], 2000);" and > see if this corrects the problem. This was a typo that resulted from being up too late. ;) The actual code is read(handle, buffer[i-1], 2000) as it should be, so this is not an array bounds problem. Thanks for the help though. So is the panel stumped? -Tom -- =========================================================== Tom White white AT cs DOT uga DOT edu ===========================================================