mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-20 04:55:40 +02:00
fixed incorrect limit in strsplit
This commit is contained in:
parent
2631255b46
commit
6ad6a2501e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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)
|
while ((pos = line.find (delim)) != line.npos)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue