This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]