X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bc69d48db7cd54db9c67dedfe82cc13890bcf71..c1bae26d32d42d8826e89be6e7b944f108e81f91:/src/common/ffile.cpp diff --git a/src/common/ffile.cpp b/src/common/ffile.cpp index ae19669204..1d55267348 100644 --- a/src/common/ffile.cpp +++ b/src/common/ffile.cpp @@ -102,7 +102,7 @@ bool wxFFile::ReadAll(wxString *str, const wxMBConv& conv) clearerr(m_fp); - wxCharBuffer buf(length + 1); + wxCharBuffer buf(length); // note that real length may be less than file length for text files with DOS EOLs // ('\r's get dropped by CRT when reading which means that we have