mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-05-24 16:55:31 +00:00
fixed incorrect limit in strsplit
This commit is contained in:
+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