summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/chdman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/chdman.cpp')
-rw-r--r--src/tools/chdman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp
index a0aebb0fb83..b64f2a3a564 100644
--- a/src/tools/chdman.cpp
+++ b/src/tools/chdman.cpp
@@ -1987,7 +1987,7 @@ static void do_create_cd(parameters_map &params)
auto input_file_str = params.find(OPTION_INPUT);
if (input_file_str != params.end())
{
- std::error_condition err = cdrom_file::parse_toc(input_file_str->second->c_str(), toc, track_info);
+ std::error_condition err = cdrom_file::parse_toc(*input_file_str->second, toc, track_info);
if (err)
report_error(1, "Error parsing input file (%s: %s)\n", *input_file_str->second, err.message());
}