From 6b4b543808456f9248eae9bef77a85a2a3a70f69 Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 18 Jul 2005 04:12:09 +0000 Subject: [PATCH] Upped buffer to 8192 in Copy() git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@448 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileUtils.cpp b/FileUtils.cpp index 71257db0..f377b834 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -176,7 +176,7 @@ bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool char szBuf[8192]; unsigned int len = 0; - while ((len = OldFile.Read(szBuf, 100))) { + while ((len = OldFile.Read(szBuf, 8192))) { NewFile.Write(szBuf, len); }