X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/935693c48491234b24cb1c8431a64f0f11349112..fb5cb86797d8c3a670bb060c1d042bd018cc4bba:/src/common/ffile.cpp diff --git a/src/common/ffile.cpp b/src/common/ffile.cpp index 1d55267348..79afbaef33 100644 --- a/src/common/ffile.cpp +++ b/src/common/ffile.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 14.07.99 -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -107,7 +106,7 @@ bool wxFFile::ReadAll(wxString *str, const wxMBConv& conv) // 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 // realLen = fileLen - numOfLinesInTheFile) - length = fread(buf.data(), sizeof(char), length, m_fp); + length = fread(buf.data(), 1, length, m_fp); if ( Error() ) {