diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-04 14:30:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-04 14:30:25 +0100 |
| commit | 27101c560e670bee6f6190a59b5452b1c128b2a5 (patch) | |
| tree | b3a20fafae24a73f211736d73bcf572fed9d2021 /src | |
| parent | b715ab435c30bd3dd2f4f83913d407ab61176393 (diff) | |
Windows build fixes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 86886ed9e..7646d5ebe 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -502,7 +502,7 @@ private: boost::filesystem::path zip_file = boost::filesystem::temp_directory_path (); zip_file /= boost::filesystem::unique_path().string() + ".zip"; - struct zip* zip = zip_open (zip_file.c_str(), ZIP_CREATE | ZIP_EXCL, 0); + struct zip* zip = zip_open (zip_file.string().c_str(), ZIP_CREATE | ZIP_EXCL, 0); if (!zip) { throw FileError ("could not create ZIP file", zip_file); } @@ -540,7 +540,7 @@ private: boost::algorithm::replace_all (body, "$DCP_NAME", film->dcp_name ()); quickmail_set_body (mail, body.c_str()); - quickmail_add_attachment_file (mail, zip_file.c_str()); + quickmail_add_attachment_file (mail, zip_file.string().c_str()); char const* error = quickmail_send (mail, Config::instance()->mail_server().c_str(), 25, "", ""); if (error) { quickmail_destroy (mail); |
