mirror of
https://github.com/znc/znc.git
synced 2026-05-07 05:44:41 +02:00
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
This commit is contained in:
@@ -365,6 +365,7 @@ bool CFile::ReadFile(CString& sData, size_t iMaxSize) {
|
||||
return true;
|
||||
|
||||
sData.append(buff, iBytes);
|
||||
iBytesRead += iBytes;
|
||||
}
|
||||
|
||||
// Buffer limit reached
|
||||
|
||||
Reference in New Issue
Block a user