mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
GH-2054: Allow nulls as separators for join_string_vec
This commit is contained in:
parent
2f453cd0cd
commit
271d3c4038
3 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,7 @@ function join_string_vec%(vec: string_vec, sep: string%): string
|
|||
for ( unsigned i = 0; i < v->Size(); ++i )
|
||||
{
|
||||
if ( i > 0 )
|
||||
d.Add(sep->CheckString(), 0);
|
||||
d.AddN(reinterpret_cast<const char*>(sep->Bytes()), sep->Len());
|
||||
|
||||
auto e = v->ValAt(i);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue