mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +00:00
Fixup construction of temp dir path in deleteLocalData
(#2370)
This commit is contained in:
parent
d8d361e491
commit
e56997185e
1 changed files with 1 additions and 1 deletions
|
@ -2180,7 +2180,7 @@ static void deleteLocalData(tr_torrent* tor, tr_fileFunc func)
|
|||
**** Move the local data to a new tmpdir
|
||||
***/
|
||||
|
||||
auto tmpdir = tr_strvPath(top, TR_PATH_DELIMITER_STR, tr_torrentName(tor), "__XXXXXX");
|
||||
auto tmpdir = tr_strvPath(top, tr_torrentName(tor) + "__XXXXXX"s);
|
||||
tr_sys_dir_create_temp(std::data(tmpdir), nullptr);
|
||||
|
||||
for (tr_file_index_t f = 0, n = tor->fileCount(); f < n; ++f)
|
||||
|
|
Loading…
Reference in a new issue