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:
psychon
2009-02-03 18:18:05 +00:00
parent d3392e7f50
commit b17bfe7922
+1
View File
@@ -365,6 +365,7 @@ bool CFile::ReadFile(CString& sData, size_t iMaxSize) {
return true;
sData.append(buff, iBytes);
iBytesRead += iBytes;
}
// Buffer limit reached