From b17bfe79224e6083215078c1cf1395f8ffb0817a Mon Sep 17 00:00:00 2001 From: psychon Date: Tue, 3 Feb 2009 18:18:05 +0000 Subject: [PATCH] Make CFile::ReadFile() actually honour the max file size we give it git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1366 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/FileUtils.cpp b/FileUtils.cpp index 250efe11..cf70921a 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -365,6 +365,7 @@ bool CFile::ReadFile(CString& sData, size_t iMaxSize) { return true; sData.append(buff, iBytes); + iBytesRead += iBytes; } // Buffer limit reached