mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
make reading ascii logfiles work when the input separator is different from \t.
(Wrong escape character was used for reading header fields).
This commit is contained in:
parent
f2e60a76a8
commit
336990e234
2 changed files with 3 additions and 3 deletions
|
@ -199,7 +199,7 @@ bool Ascii::GetLine(string& str)
|
|||
if ( str[0] != '#' )
|
||||
return true;
|
||||
|
||||
if ( str.compare(0,8, "#fields\t") == 0 )
|
||||
if ( ( str.compare(0,7, "#fields") == 0 ) && ( str[7] == separator[0] ) )
|
||||
{
|
||||
str = str.substr(8);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue