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 95dd285a94d..d9b73a1df2a 100644
--- a/src/tools/chdman.cpp
+++ b/src/tools/chdman.cpp
@@ -2310,7 +2310,7 @@ static void do_extract_cd(parameters_t &params)
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");