This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Bug in fread.cxx
- From: Broeske Marty-FMB223 <fmb223 at motorola dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 6 Feb 2002 09:58:40 -0600
- Subject: [ECOS] Bug in fread.cxx
Hey,
I found a minor bug in fread.cxx line 94.
while (!err && bytes_to_read) { // if no err, but not finished - get next
err = real_stream->refill_read_buffer();
if ( !err ) {
--> err = real_stream->read( (cyg_uint8 *)ptr, bytes_to_read, <-- ptr should be ptrc
&bytes_read );
bytes_to_read -= bytes_read;
total_read += bytes_read;
ptrc += bytes_read;
} // if
} // while
Marty Broeske
mbroeske@oddparity.com