Changeset 10540


Ignore:
Timestamp:
Apr 28, 2010, 2:51:38 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3041 "Blocklist - bad peers decreases after update; corrupt error messages" -- fix r10533 oops. fggets() doesn't strip linefeeds, so when filtering out lines with nonprintable characters, a line shouldn't fail the test just because or \r or \n. :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/blocklist.c

    r10533 r10540  
    275275
    276276        for( pch=line; pch && *pch; ++pch )
    277             if( !isprint( *pch ) )
     277            if( !isprint( *pch ) && ( *pch != '\r' ) && ( *pch != '\n' ) )
    278278                break;
    279279        if( !pch || *pch ) {
Note: See TracChangeset for help on using the changeset viewer.