From e522c7f22d29907029429663f9a416ba19c87019 Mon Sep 17 00:00:00 2001 From: imaginos Date: Sat, 23 Sep 2006 17:58:49 +0000 Subject: [PATCH] check to see whats remaining in buffer and return true git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@782 726aef4b-f618-498e-8847-2d620e286838 --- FileUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FileUtils.cpp b/FileUtils.cpp index 4aec16aa..d2730102 100644 --- a/FileUtils.cpp +++ b/FileUtils.cpp @@ -285,10 +285,10 @@ bool CFile::ReadLine(CString& sData, const CString & sDelimiter) { return true; } - if( bEOF ) { + if( bEOF && m_sBuffer.size() ) { sData = m_sBuffer; m_sBuffer.clear(); - break; + return true; } return !bEOF;