diff options
| author | tobtoht <tob@featherwallet.org> | 2024-08-14 19:45:55 +0200 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2024-08-14 19:50:06 +0200 |
| commit | 7cb69fa6bc668e6a4b485f7e192007d5ac84a44c (patch) | |
| tree | d301e2f9fd084d7b870aaacb2072fc5227ddbc3f /contrib | |
| parent | c7d4bf491e9f9fc1f5c5cd08759ef6020a025170 (diff) | |
| download | monzero-core-7cb69fa6bc668e6a4b485f7e192007d5ac84a44c.tar.gz monzero-core-7cb69fa6bc668e6a4b485f7e192007d5ac84a44c.tar.xz monzero-core-7cb69fa6bc668e6a4b485f7e192007d5ac84a44c.zip | |
epee: string_tools: keep full path in cut_off_extension
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/epee/src/string_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/src/string_tools.cpp b/contrib/epee/src/string_tools.cpp index 7ab3002b9..43f7aca9d 100644 --- a/contrib/epee/src/string_tools.cpp +++ b/contrib/epee/src/string_tools.cpp @@ -212,7 +212,7 @@ namespace string_tools //---------------------------------------------------------------------------- std::string cut_off_extension(const std::string& str) { - return boost::filesystem::path(str).stem().string(); + return boost::filesystem::path(str).replace_extension("").string(); } #ifdef _WIN32 |
