From 76c3fe23ae4cfee0581c72b40ef3d11e7502ebbc Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Sat, 3 Dec 2011 02:24:59 +0200 Subject: FIX famous \n bug --- server/server/config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server') diff --git a/server/server/config.cpp b/server/server/config.cpp index 9f2e688..9f9e9fb 100644 --- a/server/server/config.cpp +++ b/server/server/config.cpp @@ -203,7 +203,7 @@ void config::load_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, country, state, city; int port = 0; @@ -275,7 +275,7 @@ void config::load_static_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, label; int port = 0, position = 0; @@ -340,7 +340,7 @@ void config::load_firewall_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; firewall_list.push_back(line); p2 = cfg_str.find(';', p1); } @@ -369,7 +369,7 @@ void config::load_deleted_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; deleted_list.push_back(line); p2 = cfg_str.find(';', p1); } -- cgit v1.2.3