Skip to content

Commit

Permalink
Fix profile event output escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgr committed Oct 22, 2020
1 parent c38951f commit 88cf00c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/include/souffle/profile/EventProcessor.h
Expand Up @@ -103,11 +103,10 @@ class EventProcessorSingleton {
break;
}
++start_pos;
if (str[start_pos] == 't' || str[start_pos] == '"' || str[start_pos] == '\\' ||
str[start_pos] == 'n' || str[start_pos] == ';') {
continue;
if (str[start_pos] != 't' && str[start_pos] != '"' && str[start_pos] != '\\' &&
str[start_pos] != 'n' && str[start_pos] != ';') {
str.replace(start_pos - 1, 1, "\\\\");
}
str.replace(start_pos - 1, 1, "\\\\");
++start_pos;
}
return str;
Expand Down

0 comments on commit 88cf00c

Please sign in to comment.