From 9494b15bd5ed7751e6016f791198fd75a2585c28 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 21 Jul 2010 12:44:29 +0000 Subject: [PATCH] Fix possible crash on Windows --- src/bittorrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index d52c88a35..1300bedbe 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2055,7 +2055,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { QFile::remove(file); qDebug("Saving fastresume data in %s", qPrintable(file)); if (p->resume_data) { - boost::filesystem::ofstream out(fs::path(torrentBackup.path().toLocal8Bit().constData()) / file.toLocal8Bit().constData(), std::ios_base::binary); + boost::filesystem::ofstream out(boost::filesystem::path(file.toLocal8Bit().constData()), std::ios_base::binary); out.unsetf(std::ios_base::skipws); bencode(std::ostream_iterator(out), *p->resume_data); }