diff --git a/DesktopEditor/common/File.h b/DesktopEditor/common/File.h index 3aa97f4eb5..7f656b7592 100644 --- a/DesktopEditor/common/File.h +++ b/DesktopEditor/common/File.h @@ -867,7 +867,7 @@ namespace NSFile CloseHandle( hFile ); #else - std::string sFileUTF8 = U_TO_UTF8(m_sLocalFileChanges); + std::string sFileUTF8 = U_TO_UTF8(sPath); bIsSuccess = (0 == truncate(sFileUTF8, NewSize)); #endif return bIsSuccess;