diff --git a/libi2pd_client/TorrentsRPC.cpp b/libi2pd_client/TorrentsRPC.cpp index d53db9d8..9a32c48f 100644 --- a/libi2pd_client/TorrentsRPC.cpp +++ b/libi2pd_client/TorrentsRPC.cpp @@ -920,7 +920,7 @@ namespace torrents boost::beast::error_code ec; boost::beast::http::file_body::value_type body; - body.open (filePath.c_str (), boost::beast::file_mode::scan, ec); + body.open (filePath.string ().c_str (), boost::beast::file_mode::scan, ec); // we can't use filePath.c_str () on Windows if (ec) { if (ec == boost::beast::errc::no_such_file_or_directory)