mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk, libT) #4160 'foreign character support' -- merge mike.dld's 4160-02b-path.patch, which updates the codebase to use the new tr_sys_path_*() portability wrappers introduced in 4160-02a
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <unistd.h> /* getcwd() */
|
||||
|
||||
#include <libtransmission/transmission.h>
|
||||
#include <libtransmission/file.h>
|
||||
#include <libtransmission/makemeta.h>
|
||||
#include <libtransmission/tr-getopt.h>
|
||||
#include <libtransmission/utils.h>
|
||||
@@ -158,7 +159,7 @@ main (int argc, char * argv[])
|
||||
|
||||
if (outfile == NULL)
|
||||
{
|
||||
char * base = tr_basename (infile);
|
||||
char * base = tr_sys_path_basename (infile, NULL);
|
||||
char * end = tr_strdup_printf ("%s.torrent", base);
|
||||
char * cwd = tr_getcwd ();
|
||||
outfile = out2 = tr_buildPath (cwd, end, NULL);
|
||||
|
||||
Reference in New Issue
Block a user