mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 22:28:03 +00:00
fixed incorrect limit in strsplit
This commit is contained in:
1 parent
2631255b46
commit
6ad6a2501e
1 file changed
+1
-1
+1
-1
@@ -55,7 +55,7 @@ namespace http
|
||||
|
||||
static void strsplit(std::string_view line, std::vector<std::string_view> &tokens, char delim, std::size_t limit = 0)
|
||||
{
|
||||
size_t count = 0, pos;
|
||||
size_t count = 1, pos;
|
||||
while ((pos = line.find (delim)) != line.npos)
|
||||
{
|
||||
count++;
|
||||
|
||||
Reference in new issue
Block a user