Ignore:
Timestamp:
Jan 31, 2008, 3:09:27 AM (14 years ago)
Author:
charles
Message:

fix off-by-one that was uncovered by the new benc's stricter parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode-test.c

    r4876 r4878  
    215215    tr_bencFree( &val );
    216216
     217    end = NULL;
     218    snprintf( (char*)buf, sizeof( buf ), "d8:completei1e8:intervali1800e12:min intervali1800e5:peers0:e" );
     219    err = tr_bencLoad( buf, sizeof( buf ), &val, (char**)&end );
     220    check( !err );
     221    check( end == buf + strlen( (const char*)buf ) );
     222    tr_bencFree( &val );
     223
    217224    return 0;
    218225}
Note: See TracChangeset for help on using the changeset viewer.