Ignore:
Timestamp:
Jan 22, 2011, 1:33:05 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3927 "Use of libevent2 evbuffer_write on files..."

evbuffer_write() is intended for sockets. It works for files on Unix, but not on Windows, so we can't portably use it on files. Instead, use evbuffer_pullup() + write().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11714 r11748  
    245245        OutputDebugString( evbuffer_pullup( buf, -1 ) );
    246246        if( fp )
    247             evbuffer_write( buf, fileno( fp ) );
     247            fputs( (const char*)evbuffer_pullup( buf, -1 ), fp );
    248248
    249249        tr_free( base );
Note: See TracChangeset for help on using the changeset viewer.