Ignore:
Timestamp:
Apr 20, 2010, 11:14:00 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #3136 "slashes in magnet names" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/resume.c

    r10500 r10502  
    1818#include "bencode.h"
    1919#include "completion.h"
     20#include "metainfo.h" /* tr_metainfoGetBasename() */
    2021#include "peer-mgr.h" /* pex */
    21 #include "platform.h" /* tr_getResumeDir */
     22#include "platform.h" /* tr_getResumeDir() */
    2223#include "resume.h"
    2324#include "session.h"
     
    6869getResumeFilename( const tr_torrent * tor )
    6970{
    70     return tr_strdup_printf( "%s%c%s.%16.16s.resume",
    71                              tr_getResumeDir( tor->session ),
    72                              TR_PATH_DELIMITER,
    73                              tr_torrentName( tor ),
    74                              tor->info.hashString );
     71    char * base = tr_metainfoGetBasename( tr_torrentInfo( tor ) );
     72    char * filename = tr_strdup_printf( "%s" TR_PATH_DELIMITER_STR "%s.resume",
     73                                        tr_getResumeDir( tor->session ), base );
     74    tr_free( base );
     75    return filename;
    7576}
    7677
Note: See TracChangeset for help on using the changeset viewer.