(trunk daemon) #1671: transmission-remote --get option not including all files

This commit is contained in:
Charles Kerr 2009-01-13 05:32:06 +00:00
parent 22b971b47e
commit da1b8f03b2
1 changed files with 1 additions and 14 deletions

View File

@ -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 ) );
}
}