merge diff from aio branch to show partially bdecoded files with dump_torrent
This commit is contained in:
@@ -73,14 +73,14 @@ int main(int argc, char* argv[])
|
||||
ret = lazy_bdecode(&buf[0], &buf[0] + buf.size(), e, ec, &pos
|
||||
, depth_limit, item_limit);
|
||||
|
||||
printf("\n\n----- raw info -----\n\n%s\n", print_entry(e).c_str());
|
||||
|
||||
if (ret != 0)
|
||||
{
|
||||
fprintf(stderr, "failed to decode: '%s' at character: %d\n", ec.message().c_str(), pos);
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("\n\n----- raw info -----\n\n%s\n", print_entry(e).c_str());
|
||||
|
||||
torrent_info t(e, ec);
|
||||
if (ec)
|
||||
{
|
||||
|
Reference in New Issue
Block a user