Make sure to return const char* paths for mtar

This commit is contained in:
Patrick Niklaus 2018-03-26 13:13:17 +00:00
parent 3ee8a963cb
commit 0c48f5fe2f

View File

@ -85,7 +85,7 @@ class FileReader
FileReader(const boost::filesystem::path &path, FingerprintFlag flag) : path(path)
{
auto ret = mtar_open(&handle, path.c_str(), "r");
auto ret = mtar_open(&handle, path.string().c_str(), "r");
detail::checkMTarError(ret, path, "");
if (flag == VerifyFingerprint)
@ -224,7 +224,7 @@ class FileWriter
FileWriter(const boost::filesystem::path &path, FingerprintFlag flag) : path(path)
{
auto ret = mtar_open(&handle, path.c_str(), "w");
auto ret = mtar_open(&handle, path.string().c_str(), "w");
detail::checkMTarError(ret, path, "");
if (flag == GenerateFingerprint)