From da1b8f03b24fc7a0f7eddbaeae935939f30be6c8 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 13 Jan 2009 05:32:06 +0000 Subject: [PATCH] (trunk daemon) #1671: transmission-remote --get option not including all files --- daemon/remote.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/daemon/remote.c b/daemon/remote.c index 880816df6..1e4039970 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -227,20 +227,7 @@ addFiles( tr_benc * args, } if( strcmp( arg, "all" ) ) { - const char * walk = arg; - while( *walk ) - { - char * p; - unsigned long l; - errno = 0; - l = strtol( walk, &p, 10 ); - if( errno ) - break; - tr_bencListAddInt( files, l - 1 ); - if( *p != ',' ) - break; - walk = p + 1; - } + tr_rpc_parse_list_str( files, arg, strlen( arg ) ); } } -- 2.40.0