Ignore:
Timestamp:
Aug 21, 2008, 2:57:59 PM (13 years ago)
Author:
charles
Message:

bencode cleanup: remove unused functions and unnecessary #includes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/json.c

    r6584 r6612  
    8888            char buf[128];
    8989            tr_snprintf( buf, sizeof( buf ), "%f", (double)value->vu.float_value );
    90             tr_bencInitStrDup( getNode( data ), buf );
     90            tr_bencInitStr( getNode( data ), buf, -1 );
    9191            break;
    9292        }
     
    108108
    109109        case JSON_T_STRING:
    110             tr_bencInitStrDup( getNode( data ), value->vu.str.value );
     110            tr_bencInitStr( getNode( data ), value->vu.str.value, value->vu.str.length );
    111111            break;
    112112
Note: See TracChangeset for help on using the changeset viewer.