Changeset 7552 for trunk/daemon/remote.c


Ignore:
Timestamp:
Dec 30, 2008, 10:07:39 PM (12 years ago)
Author:
charles
Message:

(trunk libT) have tr_bencSaveAsJSON() use an evbuffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r7404 r7552  
    525525
    526526        if( addArg )
    527             reqs[reqCount++] = tr_bencSaveAsJSON( &top, NULL );
     527        {
     528            struct evbuffer * buf = tr_getBuffer( );
     529            reqs[reqCount++] = tr_strdup( tr_bencSaveAsJSON( &top, buf ) );
     530            tr_releaseBuffer( buf );
     531        }
     532
    528533        tr_bencFree( &top );
    529534    }
Note: See TracChangeset for help on using the changeset viewer.