diff options
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); |