Changeset e86a617a in mainline for uspace/lib/c/generic/io/io.c


Ignore:
Timestamp:
2016-07-12T17:04:44Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9fbc7fa
Parents:
fb4a424
Message:

Fix fread() returning bogus data due to uninitialized ungetc_chars field of FILE structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/io.c

    rfb4a424 re86a617a  
    271271        stream->need_sync = false;
    272272        _setvbuf(stream);
     273        stream->ungetc_chars = 0;
    273274       
    274275        list_append(&stream->link, &files);
     
    293294        stream->need_sync = false;
    294295        _setvbuf(stream);
     296        stream->ungetc_chars = 0;
    295297       
    296298        list_append(&stream->link, &files);
Note: See TracChangeset for help on using the changeset viewer.