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/peer-msgs.c

    r13154 r13300  
    240240        struct evbuffer * buf = evbuffer_new( );
    241241        char *            base = tr_basename( file );
     242        char *            message;
    242243
    243244        evbuffer_add_printf( buf, "[%s] %s - %s [%s]: ",
     
    250251        va_end( args );
    251252        evbuffer_add_printf( buf, " (%s:%d)\n", base, line );
    252         fputs( (const char*)evbuffer_pullup( buf, -1 ), fp );
     253
     254        message = evbuffer_free_to_str( buf );
     255        fputs( message, fp );
    253256
    254257        tr_free( base );
    255         evbuffer_free( buf );
     258        tr_free( message );
    256259    }
    257260}
Note: See TracChangeset for help on using the changeset viewer.