Fix the join_string_vec BIF and add more tests

This commit is contained in:
Daniel Thayer 2012-05-30 16:50:43 -05:00
parent 6869e1aadc
commit 17155a103d
3 changed files with 15 additions and 3 deletions

View file

@ -175,7 +175,7 @@ function join_string_vec%(vec: string_vec, sep: string%): string
if ( i > 0 )
d.Add(sep->CheckString(), 0);
v->Lookup(i+1)->Describe(&d);
v->Lookup(i)->Describe(&d);
}
BroString* s = new BroString(1, d.TakeBytes(), d.Len());