Correct change_extension after unicode changes

This commit is contained in:
Thomas Krijnen
2019-05-28 12:44:58 +02:00
committed by GitHub
parent 9a85fbc225
commit 3d2e99b5fa
+1 -1
View File
@@ -119,7 +119,7 @@ template <typename T>
T change_extension(const T& fn, const T& ext) {
typename T::size_type dot = fn.find_last_of('.');
if (dot != T::npos) {
return fn.substr(0, dot) + ext;
return fn.substr(0, dot + 1) + ext;
} else {
return fn + ext;
}