mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Initial Commit, removed std::isprint check to escape
This commit is contained in:
parent
9698d8d7cc
commit
6927dd1213
1 changed files with 2 additions and 1 deletions
|
@ -258,7 +258,8 @@ pair<const char*, size_t> ODesc::FirstEscapeLoc(const char* bytes, size_t n)
|
|||
|
||||
for ( size_t i = 0; i < n; ++i )
|
||||
{
|
||||
if ( ! isprint(bytes[i]) || bytes[i] == '\\' )
|
||||
//if ( ! isprint(bytes[i]) || bytes[i] == '\\' )
|
||||
if ( bytes[i] == '\\' )
|
||||
return escape_pos(bytes + i, 1);
|
||||
|
||||
size_t len = StartsWithEscapeSequence(bytes + i, bytes + n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue