Updates from BitShares FC #22

Closed
nathanielhourt wants to merge 693 commits from dapp-support into latest-fc
Showing only changes of commit 84318f8d28 - Show all commits

View file

@ -68,17 +68,13 @@ namespace fc {
size_t ifstream::readsome( char* buf, size_t len ) {
auto s = size_t(my->ifs.readsome( buf, len ));
if( s <= 0 ) {
try
if( s <= 0 )
{
read( buf, len );
s = len;
}
catch (const fc::eof_exception& eof)
read( buf, 1 );
s = 1;
if (len > 1)
{
s = my->ifs.gcount();
if (s == 0)
throw eof;
s += size_t(my->ifs.readsome( &buf[1], len - 1));
}
}
return s;