From 918defcaea2b570a927a2884ce0e720b03e32d8a Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Thu, 1 Dec 2011 03:11:09 +0200 Subject: FIX file transfer; FIX packet parsing bug; + many various fixes and improvements --- client/Config.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/Config.cpp') diff --git a/client/Config.cpp b/client/Config.cpp index 21b2c44..ef6a37b 100644 --- a/client/Config.cpp +++ b/client/Config.cpp @@ -430,7 +430,11 @@ void Config::ParseDownloadList(string data) while (! files.eof()) { files.getline(str, str_size, ';'); - //there is no \n or \r\n + // there is no \n or \r\n + // so string processing is quite different + if (files.eof()) + break; + string entry = str; FileEntry file; file.Parse(entry, FileEntry::DownloadAction); -- cgit v1.2.3