diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index 4fd315261d..5c8c65f8f0 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -119,7 +119,7 @@ template 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; }