From 778ce4329a0016255b249850c862335719543996 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 19 Sep 2008 08:18:30 +0000 Subject: [PATCH] set buffer length after reading the file contents into it successfully (part of #9980) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 250ee8443c..1fd767a47f 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1263,6 +1263,8 @@ bool wxMsgCatalogFile::Load(const wxString& szDirPrefix, const wxString& szName, // read the whole file in memory if ( fileMsg.Read(m_data.GetWriteBuf(nSize), nSize) != lenFile ) return false; + + m_data.UngetWriteBuf(nSize); #endif // wxUSE_FILESYSTEM/!wxUSE_FILESYSTEM -- 2.45.2