From: Maxim Mamontov Date: Thu, 29 May 2014 14:36:26 +0000 (+0300) Subject: Fixed Split. X-Git-Tag: 2.409~319 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/8458e9a72389eef2a76e66d2b427e490ba92c9e6?hp=b3d4b1a28e293d8bb346de5ccda0a3fddda2a0b6 Fixed Split. --- diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index 1dd8c1c7..94c26a8b 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -107,7 +107,7 @@ while (pos != std::string::npos) { res.push_back(conv(value.substr(startPos, pos - startPos))); startPos = pos + 1; - pos = value.find_first_of(delim, pos); + pos = value.find_first_of(delim, pos + 1); } res.push_back(conv(value.substr(startPos, pos - startPos))); return res;