1
0
Fork 0
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:
Mike Gelfand 2022-01-01 08:27:03 +00:00 committed by GitHub
parent d8d361e491
commit e56997185e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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