B20: large fread() calls fail

Kenneth D. Weinert kweinert@earthlink.net
Mon Aug 9 03:27:00 GMT 1999

Hello Nathan,

        Chances are it is the difference between text and binary mode:
The EOL character gets expanded into CRLF when you read, so more
characters are read than the stat() is telling you. It sometimes works
because of the way memory is allocated and whether or not you
overwrite something important when you overflow the buffer.

        Also I would note that you have a couple of places you can
lose a bunch of memory - those places you return after allocating
memory but are unable to fill it.

Best regards,
 Ken                            mailto:kweinert@earthlink.net

Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

More information about the Cygwin mailing list