Ignore:
Timestamp:
May 17, 2012, 5:40:31 PM (9 years ago)
Author:
jordan
Message:

(trunk libT) #4894 -- don't use evbuffer_add_printf() and evbuffer_pullup() together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r13155 r13300  
    754754        int i;
    755755        char name[128];
     756        char * message;
    756757        struct evbuffer * buf = evbuffer_new( );
    757758
     
    764765        }
    765766
    766         tr_deepLog( __FILE__, __LINE__, name, "announce queue is %s", evbuffer_pullup( buf, -1 ) );
    767         evbuffer_free( buf );
     767        message = evbuffer_free_to_str( buf );
     768        tr_deepLog( __FILE__, __LINE__, name, "announce queue is %s", message );
     769        tr_free( message );
    768770    }
    769771}
Note: See TracChangeset for help on using the changeset viewer.