]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Fixed Split.
[stg.git] / stglibs / common.lib / include / stg / common.h
index 605b9951de2296df54a25b4c43e44343ecc257c5..eeb68b5197832c13197e40298e72ba1244336c9c 100644 (file)
@@ -112,7 +112,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;