Ignore:
Timestamp:
Jan 31, 2008, 3:09:27 AM (15 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/tracker.c

    r4852 r4878  
    279279    const unsigned char * body = EVBUFFER_DATA( req->input_buffer );
    280280    const int bodylen = EVBUFFER_LENGTH( req->input_buffer );
    281     int ret = 1;
    282     int i;
    283 
    284     for( i=0; ret && i<bodylen; ++i )
    285         if( !tr_bencLoad( body+i, bodylen-1, setme, NULL ) )
    286             ret = 0;
    287 
    288     return ret;
     281    return tr_bencLoad( body, bodylen, setme, NULL );
    289282}
    290283
Note: See TracChangeset for help on using the changeset viewer.