diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-12-01 03:11:09 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-12-01 03:11:09 +0200 |
commit | 918defcaea2b570a927a2884ce0e720b03e32d8a (patch) | |
tree | 5c05b21f2c565a3ccc0124edf3af175657205d04 /client/Config.cpp | |
parent | 70dc6021943eacded7c26f2ca66375f64f19d819 (diff) |
FIX file transfer; FIX packet parsing bug; + many various fixes and improvements
Diffstat (limited to 'client/Config.cpp')
-rw-r--r-- | client/Config.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); |