]> granicus.if.org Git - transmission/commitdiff
(trunk daemon) #1671: transmission-remote --get option not including all files
authorCharles Kerr <charles@transmissionbt.com>
Tue, 13 Jan 2009 05:32:06 +0000 (05:32 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 13 Jan 2009 05:32:06 +0000 (05:32 +0000)
daemon/remote.c

index 880816df67429ba29f19bb2ae88b689cb4483078..1e4039970f2c10fa0cafbbe123caab5420e9eda1 100644 (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 ) );
     }
 }