diff --git a/PowerEditor/src/MISC/Common/Common.cpp b/PowerEditor/src/MISC/Common/Common.cpp index 8955d0f8..25bd616c 100644 --- a/PowerEditor/src/MISC/Common/Common.cpp +++ b/PowerEditor/src/MISC/Common/Common.cpp @@ -58,7 +58,7 @@ std::string getFileContent(const TCHAR *file2read) if (lenFile >= blockSize - 1) data[blockSize - 1] = '\0'; else - data[lenFile - 1] = '\0'; + data[lenFile] = '\0'; wholeFileContent += data;