From e56997185e201cb5f3ab3a9d76d639bc4169dfe1 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sat, 1 Jan 2022 08:27:03 +0000 Subject: [PATCH] Fixup construction of temp dir path in `deleteLocalData` (#2370) --- libtransmission/torrent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent.cc b/libtransmission/torrent.cc index 5bd22beb7..5235135ad 100644 --- a/libtransmission/torrent.cc +++ b/libtransmission/torrent.cc @@ -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)