diff options
author | MetalliC <0vetal0@gmail.com> | 2016-03-30 17:56:19 +0300 |
---|---|---|
committer | MetalliC <0vetal0@gmail.com> | 2016-03-30 17:56:19 +0300 |
commit | 677cfa86fd8675dd15cc6cde0e26fd216823c61b (patch) | |
tree | 33a75861617607e7b202cc515f6d0e95a8087577 /src/tools | |
parent | 4c08395ada93f9e4cd0cfe35106f340ad627f77d (diff) |
fix chdman extractcd track names (was foo.cue.bin instead of foo.bin)
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/chdman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp index 95dd285a94d..d9b73a1df2a 100644 --- a/src/tools/chdman.cpp +++ b/src/tools/chdman.cpp @@ -2310,7 +2310,7 @@ static void do_extract_cd(parameters_t ¶ms) std::string default_name(*output_file_str->second); int chop = default_name.find_last_of('.'); if (chop != -1) - default_name.substr(0, chop); + default_name.erase(chop, default_name.size()); char basename[128]; strncpy(basename, default_name.c_str(), 127); default_name.append(".bin"); |