From 37663cf9e30d4c9ac37859697d9b56e32ff7d886 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 28 Apr 2010 14:51:38 +0000 Subject: [PATCH] (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. :) --- libtransmission/blocklist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/blocklist.c b/libtransmission/blocklist.c index e29bf9ab1..6f61c6ec7 100644 --- a/libtransmission/blocklist.c +++ b/libtransmission/blocklist.c @@ -274,7 +274,7 @@ _tr_blocklistSetContent( tr_blocklist * b, ++inCount; for( pch=line; pch && *pch; ++pch ) - if( !isprint( *pch ) ) + if( !isprint( *pch ) && ( *pch != '\r' ) && ( *pch != '\n' ) ) break; if( !pch || *pch ) { tr_err( "skipping line #%d which contains nonprintable characters\n", inCount ); -- 2.40.0